yuanyiming 1 年間 前
コミット
d26fb6d962
2 ファイル変更9 行追加8 行削除
  1. 1 0
      .gitignore
  2. 8 8
      pbl.js

+ 1 - 0
.gitignore

@@ -22,3 +22,4 @@
 npm-debug.log*
 yarn-debug.log*
 yarn-error.log*
+mysql.js

+ 8 - 8
pbl.js

@@ -58,7 +58,7 @@ router.route("/b").all((req, res, next) => {
     getmysql(req, res, "b", json["ph"], json["pa"]);
 });
 
-// 获取微信openID
+// yym获取微信openID
 router.get("/weChatCode", async(req, res) => {
     console.log(req.query);
     let response = await axios.get("https://api.weixin.qq.com/sns/jscode2session", {
@@ -73,7 +73,7 @@ router.get("/weChatCode", async(req, res) => {
     // QMysql(req, res, "update_NewStatusById");
 });
 
-//登录接口
+//yym登录接口
 router.post("/login", (req, res) => {
     console.log(req.body);
     let { openid } = req.body;
@@ -93,7 +93,7 @@ router.post("/login", (req, res) => {
     });
 });
 
-//查询是否注册过
+//yym查询是否注册过
 router.post("/selectUser", (req, res) => {
     console.log(req.body);
     // let { openid } = req.body;
@@ -101,7 +101,7 @@ router.post("/selectUser", (req, res) => {
     // console.log(res.end);
 });
 
-// 更新头像昵称
+// yym更新头像昵称
 router.post("/updateUser", (req, res) => {
     // console.log(req.body);
     postmysql3(req, res, "update_User");
@@ -109,7 +109,7 @@ router.post("/updateUser", (req, res) => {
 });
 
 
-//上传活动
+//yym上传活动
 router.post("/insertActive", (req, res) => {
     console.log(req.body);
     postmysql3(req, res, "insert_activity");
@@ -120,18 +120,18 @@ router.post("/insertActive", (req, res) => {
     });
 });
 
-//获取活动
+//yym获取活动
 router.post("/selectActivity", (req, res) => {
     console.log(req.body);
     postmysql3(req, res, "select_activity");
 });
 
-//获取活动acid
+//lqh获取活动acid
 router.post("/selectActivityID", (req, res) => {
     postmysql3(req, res, "select_activityID");
 });
 
-//查询全部活动
+//yym查询全部活动
 router.route("/selectAct").all((req, res, next) => {
     var json = queryString(req.url);
     getmysql(req, res, "selectAct");