Browse Source

新增添加子分类

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

+ 5 - 0
pbl.js

@@ -815,6 +815,11 @@ router.route('/selectStype').all((req, res, next) => {
     var json = queryString(req.url);
     getmysql(req, res, "selectStype", json["pid"], json["page"], 10);
 });
+//添加子分类
+router.route('/addStype').all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(req, res, "addStype", json["pid"], json["n"], json["uid"], json["oid"]);
+});
 
 //更加父id查询分类
 router.route('/selectTypeByPid').all((req, res, next) => {