lsc 2 년 전
부모
커밋
3a68754633
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      pbl.js

+ 3 - 1
pbl.js

@@ -2148,7 +2148,9 @@ router.route('/addClassStudent').all((req, res, next) => {
                 let _userdata2 = [student[i],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 }));
+                    }
                 });
             }
         });