增加环境变量

This commit is contained in:
Hex
2023-11-25 14:16:22 +08:00
parent 147a910d29
commit f46522d909
2 changed files with 7 additions and 0 deletions

View File

@@ -148,6 +148,12 @@ class SmzdmTestingTaskBot extends SmzdmTaskBot {
}
!(async () => {
if (process.env.SMZDM_TASK_TESTING != 'yes') {
$.log('🟡请设置 SMZDM_TASK_TESTING 环境变量值为 yes 后才能运行全民众测能量值任务!');
return;
}
const cookies = getEnvCookies();
if (cookies === false) {