mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-26 05:09:52 +08:00
refactor(AutoPlan): 优化自动执行列表处理函数命名
- 将函数参数名从 autoDomainOrderList 更改为 autoRunOrderList - 更新函数注释描述以匹配新的通用功能 - 修改循环变量引用以使用新的参数名称 - 调整函数逻辑以支持更广泛的自动配置类型
This commit is contained in:
@@ -91,12 +91,12 @@ async function autoDomain(autoFight) {
|
||||
|
||||
|
||||
/**
|
||||
* 自动执行秘境任务列表处理函数
|
||||
* @param {Array} autoDomainOrderList - 包含秘境自动配置的数组
|
||||
* 自动执行列表处理函数
|
||||
* @param {Array} autoRunOrderList - 包含自动配置的数组
|
||||
*/
|
||||
async function autoRunList(autoDomainOrderList) {
|
||||
async function autoRunList(autoRunOrderList) {
|
||||
//计划执行
|
||||
for (const item of autoDomainOrderList) {
|
||||
for (const item of autoRunOrderList) {
|
||||
if (item.runType===config.user.runTypes[0]){
|
||||
await autoDomain(item.autoFight);
|
||||
}else if (item.runType===config.user.runTypes[1]){
|
||||
|
||||
Reference in New Issue
Block a user