This commit is contained in:
smallfawn 2026-04-17 20:43:06 +08:00
parent a5542647df
commit 634b042851

View File

@ -10,7 +10,7 @@ cron: 30 9 * * 1
#Notice:
谷雨 微信小程序 签到得积分
WeChatCodeServer 填写wx_server_url wx_auth 用于获取code
变量名称guyu 名字 授权地址控制中心 里面的openid 多个账号用&分割
变量名称guyu 名字 授权中心 里面的openid 多个账号用&分割
免责声明
------------------------------------------
1此脚本仅用于学习研究不保证其合法性准确性有效性请根据情况自行判断本人对此不承担任何保证责任
@ -35,6 +35,7 @@ let wechat = new WeChatCodeServer({
url: process.env.wx_server_url || 'https://127.0.0.1:9999',
appid: 'wxda948f3be0afc375',
auth: process.env.wx_auth || "xxx",
}
);
@ -216,16 +217,16 @@ class Task {
!(async () => {
await getNotice()
$.checkEnv(ckName);
if (process.env['wx_server_url'] && process.env['wx_auth'] && process.env['wx_app'].indexOf(ckName) !== -1) {
if (process.env['wx_server_url'] && process.env['wx_auth']) {
for (let user of $.userList) {
await new Task(user).run();
}
} else {
$.userList = ['owNAX6vpzXX7kbhWgKFdZAtL9eAo']
$.log(`${ckName}未配置微信SERVER配置 搭建可看仓库目录下的readme.md❌`)
//return
}
for (let user of $.userList) {
await new Task(user).run();
return
}
})()
.catch((e) => console.log(e))
.finally(() => $.done());