Prechádzať zdrojové kódy

根据学校查询分类

zengyicheng 2 rokov pred
rodič
commit
cc59c3d852
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      pbl.js

+ 2 - 2
pbl.js

@@ -790,10 +790,10 @@ router.route('/selectType').all((req, res, next) => {
     getmysql(req, res, "selectType", );
 });
 
-//查询分类
+//根据学校查询分类
 router.route('/selectPtype').all((req, res, next) => {
     var json = queryString(req.url);
-    getmysql(req, res, "selectPtype", json["page"], 10);
+    getmysql(req, res, "selectPtype", json["oid"], json["page"], 10);
 });
 //添加分类
 router.route('/addPtype').all((req, res, next) => {