zengyicheng 1 년 전
부모
커밋
fdb89b2f69
1개의 변경된 파일16개의 추가작업 그리고 16개의 파일을 삭제
  1. 16 16
      pbl.js

+ 16 - 16
pbl.js

@@ -5768,22 +5768,22 @@ router.route("/addCETLabel").all((req, res, next) => {
 
 //资源模板分享
 router.route("/addCETShare").all((req, res, next) => {
-    if (req.body[0]) {
-        p = [
-            req.body[0].uid,
-            req.body[0].n,
-            req.body[0].json,
-            req.body[0].t,
-            req.body[0].oid,
-        ];
-        p.unshift(_mysqlLabor[0], _mysqlLabor[1], "addCETShare");
-        //執行存儲過程
-        mysql.usselect(p, function(ret) {
-            res.end(JSON.stringify({ id: ret[0][0].id, success: 1 }));
-            // res.end(JSON.stringify(ret));
-        });
-    }
-    // postmysql(req, res, "addCETShare");
+    // if (req.body[0]) {
+    //     p = [
+    //         req.body[0].uid,
+    //         req.body[0].n,
+    //         req.body[0].json,
+    //         req.body[0].t,
+    //         req.body[0].oid,
+    //     ];
+    //     p.unshift(_mysqlLabor[0], _mysqlLabor[1], "addCETShare");
+    //     //執行存儲過程
+    //     mysql.usselect(p, function(ret) {
+    //         res.end(JSON.stringify({ id: ret[0][0].id, success: 1 }));
+    //         // res.end(JSON.stringify(ret));
+    //     });
+    // }
+    postmysql(req, res, "addCETShare");
 });
 
 router.route("/updateSource").all((req, res, next) => {