mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-31 05:59:51 +08:00
feat(AutoPlan): 添加运行类型判断逻辑
- 实现了根据runType字段控制autoDomain执行的功能 - 当runType为config.user.runTypes[0]时执行autoDomain - 当runType为config.user.runTypes[1]时预留地脉花功能 - 保持了原有的自动域名执行列表循环结构
This commit is contained in:
@@ -97,7 +97,11 @@ async function autoDomain(autoFight) {
|
||||
async function autoRunList(autoDomainOrderList) {
|
||||
//计划执行
|
||||
for (const item of autoDomainOrderList) {
|
||||
await autoDomain(item.autoFight);
|
||||
if (item.runType===config.user.runTypes[0]){
|
||||
await autoDomain(item.autoFight);
|
||||
}else if (item.runType===config.user.runTypes[1]){
|
||||
//todo :地脉花
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user