|
@@ -75,7 +75,7 @@ router.get("/weChatCode", async (req, res) => {
|
|
|
|
|
|
//yym登录接口
|
|
|
router.post("/login", (req, res) => {
|
|
|
- console.log(req.body);
|
|
|
+ // console.log(req.body);
|
|
|
let { openid } = req.body;
|
|
|
postmysql3(req, res, "insert_user");
|
|
|
let token = jwt.sign({
|
|
@@ -111,7 +111,7 @@ router.post("/updateUser", (req, res) => {
|
|
|
|
|
|
//yym上传活动
|
|
|
router.post("/insertActive", (req, res) => {
|
|
|
- console.log(req.body);
|
|
|
+ // console.log(req.body);
|
|
|
postmysql3(req, res, "insert_activity");
|
|
|
|
|
|
res.send({
|
|
@@ -120,12 +120,27 @@ router.post("/insertActive", (req, res) => {
|
|
|
});
|
|
|
});
|
|
|
|
|
|
-//yym获取活动
|
|
|
+//yym 获取活动
|
|
|
router.post("/selectActivity", (req, res) => {
|
|
|
- console.log(req.body);
|
|
|
+ // console.log(req.body);
|
|
|
postmysql3(req, res, "select_activity");
|
|
|
});
|
|
|
|
|
|
+//yym 获取用户收藏信息
|
|
|
+router.post("/selectColl", (req, res) => {
|
|
|
+ // console.log(req.body);
|
|
|
+ postmysql3(req, res, "select_coll");
|
|
|
+});
|
|
|
+
|
|
|
+//yym 更新用户收藏信息
|
|
|
+router.post("/updateColl", (req, res) => {
|
|
|
+ // console.log('更新用户收藏信息',req.body);
|
|
|
+ postmysql3(req, res, "update_coll");
|
|
|
+
|
|
|
+
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
//lqh获取活动acid
|
|
|
router.post("/selectActivityID", (req, res) => {
|
|
|
postmysql3(req, res, "select_activityID");
|