zengyicheng hace 3 años
padre
commit
0615472336
Se han modificado 1 ficheros con 11 adiciones y 2 borrados
  1. 11 2
      pbl.js

+ 11 - 2
pbl.js

@@ -467,6 +467,11 @@ router.route('/selectAllCourse').all((req, res, next) => {
     var json = queryString(req.url);
     getmysql(req, res, "selectAllCourse", json['oid'], json['page'], 10);
 });
+//根据班级查询所有课程
+router.route('/selectAllCourseByCid').all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(req, res, "selectAllCourseByCid", json['oid'], json['cid'], json['page'], 10);
+});
 //删除素材
 router.route('/deleteM').all((req, res, next) => {
     var json = queryString(req.url);
@@ -553,6 +558,10 @@ router.route('/selectNoteContent').all((req, res, next) => {
 router.route('/updateUserByEdu').all((req, res, next) => {
     postmysql(req, res, "updateUserByEdu");
 });
+//教师端data修改pbl用户信息
+router.route('/updatePblMessage').all((req, res, next) => {
+    postmysql(req, res, "updatePblMessage");
+});
 //查询用户信息
 router.route('/selectUser').all((req, res, next) => {
     var json = queryString(req.url);
@@ -938,7 +947,7 @@ router.route('/batchRegistrationMore').post(function(req, res, next) {
             _password,
             _alias,
             "",
-            1,
+            1, //0老师
             _username,
             "",
             generateAPIKey(_username),
@@ -946,7 +955,7 @@ router.route('/batchRegistrationMore').post(function(req, res, next) {
             "",
             _username,
             _sId,
-            2,
+            2, //1老师
             _oid,
             _ph,
             _class,