zengyicheng 1 ano atrás
pai
commit
be60ab9419
1 arquivos alterados com 16 adições e 1 exclusões
  1. 16 1
      pbl.js

+ 16 - 1
pbl.js

@@ -5768,7 +5768,22 @@ router.route("/addCETLabel").all((req, res, next) => {
 
 //资源模板分享
 router.route("/addCETShare").all((req, res, next) => {
-    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) => {