|
@@ -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) => {
|