lsc 2 سال پیش
والد
کامیت
ab71450ce3
1فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 3
      pbl.js

+ 1 - 3
pbl.js

@@ -2170,9 +2170,7 @@ router.route('/deleteClassStudent').all((req, res, next) => {
             let _userdata2 = [student, classid.join(",")]
             _userdata2.unshift(_mysqlLabor[0], _mysqlLabor[1], "updateStudentClass");
             mysql.usselect(_userdata2, function (ret) {
-                if (i == studnet.length - 1) {
-                    res.end(JSON.stringify({ success: 1 }));
-                }
+                res.end(JSON.stringify({ success: 1 }));
             });
         }
     });