Explorar el Código

Merge branch 'master' of https://git.cocorobo.cn/CocoRoboLabs/pbl-api

lsc hace 1 año
padre
commit
31f1ee991f
Se han modificado 1 ficheros con 8 adiciones y 4 borrados
  1. 8 4
      pbl.js

+ 8 - 4
pbl.js

@@ -3044,7 +3044,7 @@ router.route("/selectEngWork").all((req, res, next) => {
 //新增或修改英语写作评价
 router.route("/addEngEva").all((req, res, next) => {
     var json = queryString(req.url);
-    getmysql(req, res, "addEngEva", json["id"], json["aic"], json["tc"], json["t"]);
+    getmysql(req, res, "addEngEva", json["id"], json["aic"], json["tc"]);
 });
 //查询分类及所有子分类
 router.route("/selectAllType").all((req, res, next) => {
@@ -4179,9 +4179,9 @@ router.route("/insertCase").all((req, res, next) => {
 });
 //新增评分
 router.route("/addScore").all((req, res, next) => {
-    var json = queryString(req.url);
-    getmysql(req, res, "addScore", json["rid"], json["suser"], json["s"]);
+    postmysql(req, res, "addScore");
 });
+
 //查询评分
 router.route("/selectScore").all((req, res, next) => {
     var json = queryString(req.url);
@@ -5402,7 +5402,11 @@ router.route("/getCourseWorkCount").all((req, res, next) => {
     postmysql(req, res, "getCourseWorkCount");
 });
 
-
+//根据id查询英语写作评价模板
+router.route("/selectEnglishEvaById").all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(req, res, "selectEnglishEvaById", json["id"], json["oid"]);
+});
 
 function generateAPIKey(username) {
     let timeStamp = new Date().getTime();