Parcourir la source

添加排名,与user课程浏览量

yuanyiming il y a 1 an
Parent
commit
ca2f0b798f
1 fichiers modifiés avec 12 ajouts et 4 suppressions
  1. 12 4
      pbl.js

+ 12 - 4
pbl.js

@@ -370,6 +370,17 @@ router.post("/insertResource", (req, res) => {
 	postmysql3(req, res, "insertResource");
 	postmysql3(req, res, "insertResource");
 });
 });
 
 
+//更新用户查看课程views
+router.post("/updateUserViews", (req, res) => {
+	postmysql3(req, res, "updateUserViews");
+});
+
+//查询用户活跃排行
+router.get("/selectUserActivity", (req, res) => {
+	var json = req.query
+	getmysql(req, res, "selectUserActivity",json['oid']);
+});
+
 //lqh获取活动acid
 //lqh获取活动acid
 router.post("/selectActivityID", (req, res) => {
 router.post("/selectActivityID", (req, res) => {
 	postmysql3(req, res, "select_activityID");
 	postmysql3(req, res, "select_activityID");
@@ -380,10 +391,7 @@ router.post("/selectMyPublish", (req, res) => {
 	postmysql3(req, res, "select_mypublish");
 	postmysql3(req, res, "select_mypublish");
 });
 });
 
 
-//更改当前用户发布的活动 xlh
-router.post("/updateMyPublish", (req, res) => {
-	postmysql3(req, res, "update_mypublish");
-});
+
 
 
 //删除当前用户发布的活动 xlh
 //删除当前用户发布的活动 xlh
 router.post("/deleteMyPublish", (req, res) => {
 router.post("/deleteMyPublish", (req, res) => {