ソースを参照

顶部跳转大图

yuanyiming 1 年間 前
コミット
a64f7b8e2b
1 ファイル変更8 行追加11 行削除
  1. 8 11
      pbl.js

+ 8 - 11
pbl.js

@@ -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");