Browse Source

查询课程权限(学生是否能查看所有作业)

zengyicheng 2 năm trước cách đây
mục cha
commit
15902c5667
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      pbl.js

+ 5 - 1
pbl.js

@@ -259,7 +259,11 @@ router.route('/addCourseWorks2').all((req, res, next) => {
     var json = queryString(req.url);
     getmysql(req, res, "addCourseWorks", json['uid'], json['cid'], json['stage'], json['task'], json['tool'], json['content'], json['type']);
 });
-
+//查询课程权限(学生是否能查看所有作业)
+router.route('/updateCourseSLook').all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(req, res, "updateCourseSLook", json['sopen'], json['cid']);
+});
 
 //查询作业详情
 router.route('/selectWorksDetail2').all((req, res, next) => {