|
@@ -337,23 +337,14 @@ router.get("/selectLikeMajors", (req, res) => {
|
|
|
|
|
|
// yym 课程搜索框
|
|
|
router.get("/selectSearchdata", (req, res) => {
|
|
|
- // console.log("获取", req.query);
|
|
|
- // let json = querystring(req.url)
|
|
|
var json = req.query
|
|
|
-
|
|
|
- // console.log(json['openid']);
|
|
|
- // getmysql(req, res, "selectSearchdata",json['openid'],json['txt'],json['ty'],json['page'],json['lim'],);
|
|
|
getmysql(req, res, "selectSearchdata",json['openid'],json['txt'],json['ty']);
|
|
|
|
|
|
});
|
|
|
|
|
|
// yym 根据学号/工号自动获取信息
|
|
|
router.get("/selectStudentNumber", (req, res) => {
|
|
|
-
|
|
|
var json = req.query
|
|
|
-
|
|
|
- // console.log(json['openid']);
|
|
|
- // getmysql(req, res, "selectSearchdata",json['openid'],json['txt'],json['ty'],json['page'],json['lim'],);
|
|
|
getmysql(req, res, "selectStudentNumber",json['txt']);
|
|
|
|
|
|
});
|
|
@@ -370,17 +361,23 @@ router.post("/insertResource", (req, res) => {
|
|
|
postmysql3(req, res, "insertResource");
|
|
|
});
|
|
|
|
|
|
-//更新用户查看课程views
|
|
|
+//yym 更新用户查看课程views
|
|
|
router.post("/updateUserViews", (req, res) => {
|
|
|
postmysql3(req, res, "updateUserViews");
|
|
|
});
|
|
|
|
|
|
-//查询用户活跃排行
|
|
|
+//yym 查询用户活跃排行
|
|
|
router.get("/selectUserActivity", (req, res) => {
|
|
|
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']);
|
|
|
+});
|
|
|
+
|
|
|
//lqh获取活动acid
|
|
|
router.post("/selectActivityID", (req, res) => {
|
|
|
postmysql3(req, res, "select_activityID");
|