Explorar o código

查询赛事项目列表

zengyicheng %!s(int64=2) %!d(string=hai) anos
pai
achega
3da9b9880d
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      pbl.js

+ 3 - 3
pbl.js

@@ -455,7 +455,7 @@ router.route('/getGroup').all((req, res, next) => {
 });
 
 //查询这个老师底下的学生提交的作业
-router.route('/getWorks').all((req, res, next) => {//已经不用
+router.route('/getWorks').all((req, res, next) => { //已经不用
     var json = queryString(req.url);
     getmysql(req, res, "selectWorks", json['cn'], json['cid'], json['page'], 10);
 });
@@ -467,7 +467,7 @@ router.route('/getProject').all((req, res, next) => {
 });
 
 //新评价查询项目
-router.route('/getProject1').all((req, res, next) => {//已经不用
+router.route('/getProject1').all((req, res, next) => { //已经不用
     var json = queryString(req.url);
     getmysql(req, res, "selectProject1", json['uid'], json['cid'], json['eid'], json['cn'], json['page'], 10);
 });
@@ -2085,7 +2085,7 @@ router.route('/selectCaseS2').all((req, res, next) => {
 //查询赛事项目列表
 router.route('/selectRaceList').all((req, res, next) => {
     var json = queryString(req.url);
-    getmysql(req, res, "selectRaceList", json['uid']);
+    getmysql(req, res, "selectRaceList", json['uid'], json['t']);
 });
 //修改赛事状态
 router.route('/updateRaceState').all((req, res, next) => {