lsc há 2 anos atrás
pai
commit
79fa8cdf4d
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      pbl.js

+ 1 - 1
pbl.js

@@ -1110,7 +1110,7 @@ router.route('/updateWorkNew4').all((req, res, next) => {
                 _unitJson[_unitIndex] = _chapters[_unitIndex]
             }
             // console.log(_unitJson);
-            let p2 = [req.body[0].cid, JSON.stringify(_unitJson).replaceAll(/%/g, "%25")];
+            let p2 = [req.body[0].cid, JSON.stringify(_unitJson)];
             p2.unshift(_mysqlLabor[0], _mysqlLabor[1], "update_teacher_work_new4"); //執行存儲過程
             mysql.usselect(p2, function(ret) {
                 res.end(JSON.stringify({ success: 1 }));