浏览代码

cocoflow社区功能

11wqe1 2 周之前
父节点
当前提交
7c9030ecf8
共有 1 个文件被更改,包括 22 次插入3 次删除
  1. 22 3
      pbl.js

+ 22 - 3
pbl.js

@@ -6431,7 +6431,7 @@ router.route("/getEvaluation").all((req, res, next) => {
         10
     );
 });
-//查询社区列表
+//查询社区列表 yym
 router.route("/getcylist").all((req, res, next) => {
     var json = queryString(req.url); //cid 课程id,page 页数
     getmysql(
@@ -6445,7 +6445,7 @@ router.route("/getcylist").all((req, res, next) => {
     );
 });
 
-//查询社区列表
+//查询社区列表 yym
 router.route("/getAddcyPersonlist").all((req, res, next) => {
     var json = queryString(req.url); //cid 课程id,page 页数
     getmysql(
@@ -6459,7 +6459,7 @@ router.route("/getAddcyPersonlist").all((req, res, next) => {
     );
 });
 
-//查询社区人员列表
+//查询社区人员列表 yym
 router.route("/getcypersonlist").all((req, res, next) => {
     var json = queryString(req.url); //cid 课程id,page 页数
     getmysql(
@@ -6469,6 +6469,25 @@ router.route("/getcypersonlist").all((req, res, next) => {
         json["id"]
     );
 });
+
+//查询社区人员列表 yym
+router.route("/getCococy").all((req, res, next) => {
+    var json = queryString(req.url); //cid 课程id,page 页数
+    getmysql(
+        req,
+        res,
+        "getCococy",
+        json["org"],
+        json["oid"]
+    );
+});
+
+//社区应用获取 yym
+router.route('/selectCyapp').all((req,res,next)=>{
+	var json = queryString(req.url);
+	getmysql(req, res, "selectCyapp",json["uid"],json["cyid"],json["tea"],json["stand"]);
+})
+
 //添加评价体系
 router.route("/addEvaluation").all((req, res, next) => {
     postmysql(req, res, "add_evaluation");