|
@@ -83,7 +83,6 @@ router.get("/weChatCode", async (req, res) => {
|
|
|
//yym注册接口
|
|
|
router.post("/login", (req, res) => {
|
|
|
postmysql3(req, res, "insert_user");
|
|
|
-
|
|
|
});
|
|
|
|
|
|
//yym查询用户(查询是否注册过)
|
|
@@ -296,15 +295,22 @@ router.post("/selectRegistered", (req, res) => {
|
|
|
// yym 活动搜索框
|
|
|
router.get("/selectActSearch", (req, res) => {
|
|
|
// console.log("获取", req.body);
|
|
|
- var json = req.query
|
|
|
-
|
|
|
- getmysql(req, res, "selectActSearch",json['openid'],json['txt'],json['ty']);
|
|
|
+ var json = req.query;
|
|
|
+
|
|
|
+ getmysql(
|
|
|
+ req,
|
|
|
+ res,
|
|
|
+ "selectActSearch",
|
|
|
+ json["openid"],
|
|
|
+ json["txt"],
|
|
|
+ json["ty"]
|
|
|
+ );
|
|
|
});
|
|
|
|
|
|
// yym 搜索所有学校
|
|
|
router.get("/selectColleges", (req, res) => {
|
|
|
// console.log("获取", req.body);
|
|
|
- var json = req.query
|
|
|
+ var json = req.query;
|
|
|
|
|
|
getmysql(req, res, "selectColleges");
|
|
|
});
|
|
@@ -312,41 +318,44 @@ router.get("/selectColleges", (req, res) => {
|
|
|
// 搜索对应学校的专业
|
|
|
router.get("/selectMajors", (req, res) => {
|
|
|
// console.log("获取", req.body);
|
|
|
- var json = req.query
|
|
|
+ var json = req.query;
|
|
|
|
|
|
- getmysql(req, res, "selectMajors",json['mid']);
|
|
|
+ getmysql(req, res, "selectMajors", json["mid"]);
|
|
|
});
|
|
|
|
|
|
-
|
|
|
// 模糊搜索学校
|
|
|
router.get("/selectLikeColleges", (req, res) => {
|
|
|
// console.log("获取", req.body);
|
|
|
- var json = req.query
|
|
|
+ var json = req.query;
|
|
|
|
|
|
- getmysql(req, res, "selectLikeColleges",json['txt']);
|
|
|
+ getmysql(req, res, "selectLikeColleges", json["txt"]);
|
|
|
});
|
|
|
|
|
|
// 模糊搜索专业
|
|
|
router.get("/selectLikeMajors", (req, res) => {
|
|
|
// console.log("获取", req.body);
|
|
|
- var json = req.query
|
|
|
+ var json = req.query;
|
|
|
|
|
|
- getmysql(req, res, "selectLikeMajors",json['mid'],json['txt']);
|
|
|
+ getmysql(req, res, "selectLikeMajors", json["mid"], json["txt"]);
|
|
|
});
|
|
|
|
|
|
-
|
|
|
// yym 课程搜索框
|
|
|
router.get("/selectSearchdata", (req, res) => {
|
|
|
- var json = req.query
|
|
|
- getmysql(req, res, "selectSearchdata",json['openid'],json['txt'],json['ty']);
|
|
|
-
|
|
|
+ var json = req.query;
|
|
|
+ getmysql(
|
|
|
+ req,
|
|
|
+ res,
|
|
|
+ "selectSearchdata",
|
|
|
+ json["openid"],
|
|
|
+ json["txt"],
|
|
|
+ json["ty"]
|
|
|
+ );
|
|
|
});
|
|
|
|
|
|
// yym 根据学号/工号自动获取信息
|
|
|
router.get("/selectStudentNumber", (req, res) => {
|
|
|
- var json = req.query
|
|
|
- getmysql(req, res, "selectStudentNumber",json['txt']);
|
|
|
-
|
|
|
+ var json = req.query;
|
|
|
+ getmysql(req, res, "selectStudentNumber", json["txt"]);
|
|
|
});
|
|
|
|
|
|
//yym 取消报名
|
|
@@ -368,14 +377,14 @@ router.post("/updateUserViews", (req, res) => {
|
|
|
|
|
|
//yym 查询用户活跃排行
|
|
|
router.get("/selectUserActivity", (req, res) => {
|
|
|
- var json = req.query
|
|
|
- getmysql(req, res, "selectUserActivity",json['oid']);
|
|
|
+ var json = req.query;
|
|
|
+ getmysql(req, res, "selectUserActivity", json["oid"]);
|
|
|
});
|
|
|
|
|
|
//yym 获取广告
|
|
|
router.get("/selectAdvertisement", (req, res) => {
|
|
|
- var json = req.query
|
|
|
- getmysql(req, res, "selectAdvertisement",json['typ']);
|
|
|
+ var json = req.query;
|
|
|
+ getmysql(req, res, "selectAdvertisement", json["typ"]);
|
|
|
});
|
|
|
|
|
|
//yym 发布反馈与帮助
|
|
@@ -384,25 +393,32 @@ router.post("/insertFeedback", (req, res) => {
|
|
|
postmysql3(req, res, "insertFeedback");
|
|
|
});
|
|
|
|
|
|
+//yym 获取反馈信息
|
|
|
+router.get("/selectFeedback", (req, res) => {
|
|
|
+ var json = req.query;
|
|
|
+ getmysql(req, res, "selectFeedback", json["pa"], 10);
|
|
|
+});
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+//yym 更新反馈状态
|
|
|
+router.post("/updateFeedback", (req, res) => {
|
|
|
+ // console.log("获取", req.body);
|
|
|
+ postmysql3(req, res, "updateFeedback");
|
|
|
+});
|
|
|
+
|
|
|
+//yym 订阅页面获取活动报名人数据
|
|
|
+router.get("/selectEnrollUser", (req, res) => {
|
|
|
+ var json = req.query;
|
|
|
+ getmysql(
|
|
|
+ req,
|
|
|
+ res,
|
|
|
+ "selectEnrollUser",
|
|
|
+ json["oid"],
|
|
|
+ json["aid"],
|
|
|
+ json["type"],
|
|
|
+ json["page"],
|
|
|
+ 30
|
|
|
+ );
|
|
|
+});
|
|
|
|
|
|
//lqh获取活动acid
|
|
|
router.post("/selectActivityID", (req, res) => {
|
|
@@ -414,8 +430,6 @@ router.post("/selectMyPublish", (req, res) => {
|
|
|
postmysql3(req, res, "select_mypublish");
|
|
|
});
|
|
|
|
|
|
-
|
|
|
-
|
|
|
//删除当前用户发布的活动 xlh
|
|
|
router.post("/deleteMyPublish", (req, res) => {
|
|
|
postmysql3(req, res, "delete_mypublish");
|