lsc 2 years ago
parent
commit
056138a572
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pbl.js

+ 1 - 1
pbl.js

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