lsc 2 年之前
父節點
當前提交
056138a572
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 }));