mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-27 05:19:51 +08:00
refactor(AutoPlanDomain): 优化配置变量命名
- 将 domainConfig 重命名为 runConfig 以提高代码可读性 - 更新注释内容以准确描述配置获取功能 - 保持原有逻辑不变,仅调整变量命名规范
This commit is contained in:
@@ -301,10 +301,10 @@ async function main() {
|
||||
log.info(`开始推送bgi_tools配置`)
|
||||
await pushAllJsonConfig(JSON.parse(file.readTextSync(config.path.domain)), config.bgi_tools.api.httpPushAllJsonConfig, config.bgi_tools.token)
|
||||
}
|
||||
// 获取秘境配置
|
||||
let domainConfig = config.domain.config;
|
||||
// 获取配置
|
||||
let runConfig = config.domain.config;
|
||||
//"队伍名称|秘境名称/刷取物品名称|刷几轮|限时/周日|周几执行(0-6)不填默认执行|执行顺序,..."
|
||||
const autoRunOrderList = await initRunOrderList(domainConfig);
|
||||
const autoRunOrderList = await initRunOrderList(runConfig);
|
||||
const list = autoRunOrderList.filter(item => item.autoFight.DomainRoundNum > 0)
|
||||
if (list?.length > 0) {
|
||||
await autoRunList(list);
|
||||
|
||||
Reference in New Issue
Block a user