通过 CloudBase 运行签到脚本script
- 参考.env.example 配置 COOKIES 并重命名为.env
- COOKIES 获取方法参考 scripts 中的相关描述
注意更新 cloudbaserc.json 中的 envId
tcb
配置 cloudbaserc.json 函数中的 config 项 doc
tcb fn trigger create [functionName] [triggerName]
- 增加导出 module.exports = ReadCookie
- ReadCookie 方法更新为 async
- ReadCookie 方法最后 all()修改为 await all();
- 修改 NodeSet 为/tmp 目录
- notify 方法允许 Node 环境 // if (!$nobyda.isNode)
- nobyda.notify 增加 slackNotify(
${title}\n${subtitle}\n${message}
);