🎉 now you can push message to wechat

This commit is contained in:
Song
2021-01-17 16:45:52 +08:00
parent 0e9c7d9086
commit d36680aea1
7 changed files with 142 additions and 51 deletions
+5 -6
View File
@@ -7,16 +7,15 @@ async function initializeTokenStore() {
users.forEach((user) => {
if (user.wechatAppId) {
tokenStore.set(user.prefix, {
appId: user.wechatAppId,
appSecret: user.wechatAppSecret,
templateId: user.wechatTemplateId,
openId: user.wechatOpenId,
serverVerifyToken: user.wechatVerifyToken,
wechatAppId: user.wechatAppId,
wechatAppSecret: user.wechatAppSecret,
wechatTemplateId: user.wechatTemplateId,
wechatOpenId: user.wechatOpenId,
wechatVerifyToken: user.wechatVerifyToken,
token: '',
});
}
});
console.debug(tokenStore);
console.log('Token store initialized.');
}