lsc 2 달 전
부모
커밋
a2516b6b14
1개의 변경된 파일14개의 추가작업 그리고 14개의 파일을 삭제
  1. 14 14
      js/Common/uploadR2R.js

+ 14 - 14
js/Common/uploadR2R.js

@@ -28,20 +28,20 @@ window.uploadFile = async function ({ file, uuid, userid, folderid, moFolderid }
       }
     });
 
-    // let params = {
-    //   n: file.name,
-    //   did: uuid,
-    //   uid: userid,
-    //   fid: folderid,
-    //   mofid: moFolderid !== folderid ? moFolderid : ""
-    // };
-    // const res2 = await fetch('https://pbl.cocorobo.cn/api/pbl/addFile', {
-    //   method: 'POST',
-    //   headers: {
-    //     'Content-Type': 'application/x-www-form-urlencoded'
-    //   },
-    //   body: JSON.stringify([params])
-    // });
+    let params = {
+      n: file.name,
+      did: uuid,
+      uid: userid,
+      fid: folderid,
+      mofid: moFolderid !== folderid ? moFolderid : ""
+    };
+    const res2 = await fetch('https://pbl.cocorobo.cn/api/pbl/addFile', {
+      method: 'POST',
+      headers: {
+        'Content-Type': 'application/x-www-form-urlencoded'
+      },
+      body: JSON.stringify([params])
+    });
     console.log("上传成功");
     return { code: 200, msg: "上传成功" }
   } catch (err) {