Skip to content

Commit

Permalink
doc: update ServerDocking.md (labring#1353)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuangzhibin authored Jul 4, 2023
1 parent a4e4b7f commit 4c1a7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/3min/wechat/MediaPlatform/ServerDocking.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import cloud from '@lafjs/cloud';
// 处理接收到的微信公众号消息
export async function main(event) {
const { signature, timestamp, nonce, echostr } = event.query;
const token = process.dev.WECHAT_TOKEN;
const token = process.env.WECHAT_TOKEN;

// 验证消息是否合法,若不合法则返回错误信息
if (!verifySignature(signature, timestamp, nonce, token)) {
Expand Down

0 comments on commit 4c1a7fe

Please sign in to comment.