diff --git a/Merge/front/src/components/UploadPageJWLLL.jsx b/Merge/front/src/components/UploadPageJWLLL.jsx
index 2d9ee7d..475fe2f 100644
--- a/Merge/front/src/components/UploadPageJWLLL.jsx
+++ b/Merge/front/src/components/UploadPageJWLLL.jsx
@@ -1,6 +1,7 @@
 import React, { useState } from 'react'
 import { Image, Video, Send } from 'lucide-react'
 import { searchAPI } from '../api/search_jwlll'
+import { getUserInfo } from '../utils/auth'
 import '../style/UploadPage.css'
 
 const categories = [
@@ -14,15 +15,18 @@
   const [isUploading, setIsUploading] = useState(false)
   const [uploadedFiles, setUploadedFiles] = useState([])
   const [uploadProgress, setUploadProgress] = useState(0)
-  
-  // 新增表单字段
+    // 新增表单字段
   const [title, setTitle] = useState('')
   const [content, setContent] = useState('')
   const [tags, setTags] = useState('')
   const [category, setCategory] = useState(categories[0])
   const [isPublishing, setIsPublishing] = useState(false)
 
-  const DEFAULT_USER_ID = '3' // 默认用户ID
+  // 获取当前用户ID
+  const getCurrentUserId = () => {
+    const userInfo = getUserInfo()
+    return userInfo?.id || 3 // 如果未登录或无用户信息，使用默认值3（注意这里是数字类型）
+  }
 
   const validateFiles = files => {
     const imgTypes = ['image/jpeg','image/jpg','image/png','image/webp']
@@ -91,12 +95,11 @@
     if (!content.trim()) {
       alert('请输入内容')
       return
-    }
-
-    setIsPublishing(true)
+    }    setIsPublishing(true)
     try {
+      const currentUserId = getCurrentUserId()
       const postData = {
-        user_id: DEFAULT_USER_ID,
+        user_id: currentUserId,
         title: title.trim(),
         content: content.trim(),
         tags: tags.split(',').map(t => t.trim()).filter(t => t),
