From bdc18666ee344bf59600ae805b0590405ac5824f Mon Sep 17 00:00:00 2001 From: JustSong Date: Sat, 14 May 2022 20:48:05 +0800 Subject: [PATCH] :bug: bug fix #16, thanks @marshal-cn --- README.md | 1 + app.json | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index f5a10e9..47ca6ab 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ |PREFIX|你的前缀,如 admin(前缀用于区分用户,出现在请求的 api 路径中)| |DEFAULT_METHOD|默认推送方式(test 代表微信测试号,corp 代表微信企业号,email 代表邮件推送,client 代表客户端推送)| |HREF|服务的 href,如 https://wechat-message.herokuapp.com/ ,注意后面要有 /| +|ACCESS_TOKEN|用于验证调用者身份,防止别人使用借口发送垃圾信息,置空则不进行检查,设置该值后则需要在调用时加上 token 字段| |WECHAT_APP_ID|你的测试号的 APP ID| |WECHAT_APP_SECRET|你的测试号的 APP Secret| |WECHAT_TEMPLATE_ID|你的测试号的模板消息的 ID| diff --git a/app.json b/app.json index 7955c94..3ac5b0c 100644 --- a/app.json +++ b/app.json @@ -73,6 +73,10 @@ "CORP_USER_ID" : { "description": "微信企业号用户 ID", "value": "" + }, + "ACCESS_TOKEN" : { + "description": "用于验证调用者身份,防止别人使用借口发送垃圾信息,置空则不进行检查,设置该值后则需要在调用时加上 token 字段", + "value": "" } }, "website": "https://github.com/songquanpeng/message-pusher",