浏览代码

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

yuanyiming 1 年之前
父节点
当前提交
ca2f0b798f
共有 1 个文件被更改,包括 12 次插入4 次删除
  1. 12 4
      pbl.js

+ 12 - 4
pbl.js

@@ -370,6 +370,17 @@ router.post("/insertResource", (req, res) => {
 	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
 router.post("/selectActivityID", (req, res) => {
 	postmysql3(req, res, "select_activityID");
@@ -380,10 +391,7 @@ router.post("/selectMyPublish", (req, res) => {
 	postmysql3(req, res, "select_mypublish");
 });
 
-//更改当前用户发布的活动 xlh
-router.post("/updateMyPublish", (req, res) => {
-	postmysql3(req, res, "update_mypublish");
-});
+
 
 //删除当前用户发布的活动 xlh
 router.post("/deleteMyPublish", (req, res) => {