🐛 bug fix

This commit is contained in:
Song
2020-09-01 15:39:05 +08:00
parent 57294ac131
commit 96265aac7a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www"
"start": "node ./app.js"
},
"dependencies": {
"cookie-parser": "~1.4.4",
+1 -1
View File
@@ -8,7 +8,7 @@ router.get("/", (req, res, next) => {
router.get("/verify", (req, res, next) => {
// 验证消息来自微信服务器:https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Access_Overview.html
const { signature, timestamp, nonce, echostr } = req.body;
const { signature, timestamp, nonce, echostr } = req.query;
const token = process.env.TOKEN;
let tmp_array = [token, timestamp, nonce].sort();
let tmp_string = tmp_array.join("");