mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-07-22 22:04:46 +08:00
Refactor: replace independent scheduled DowntimeFetch task with on-demand auto-fetch
This commit is contained in:
@@ -622,6 +622,45 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"DowntimeMgmt": {
|
||||
"Downtime": {
|
||||
"Window": {
|
||||
"type": "input",
|
||||
"value": ""
|
||||
},
|
||||
"Title": {
|
||||
"type": "input",
|
||||
"value": "",
|
||||
"display": "disabled"
|
||||
}
|
||||
},
|
||||
"DowntimeStrategy": {
|
||||
"AutoFetch": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
},
|
||||
"ManageExercise": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
},
|
||||
"ExerciseClearTime": {
|
||||
"type": "input",
|
||||
"value": "15:00:00"
|
||||
},
|
||||
"ManageDaily": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
}
|
||||
},
|
||||
"Storage": {
|
||||
"Storage": {
|
||||
"type": "storage",
|
||||
"value": {},
|
||||
"valuetype": "ignore",
|
||||
"display": "disabled"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Restart": {
|
||||
"Scheduler": {
|
||||
"Enable": {
|
||||
@@ -669,82 +708,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"DowntimeFetch": {
|
||||
"Scheduler": {
|
||||
"Enable": {
|
||||
"type": "checkbox",
|
||||
"value": false,
|
||||
"option": [
|
||||
true,
|
||||
false
|
||||
]
|
||||
},
|
||||
"NextRun": {
|
||||
"type": "datetime",
|
||||
"value": "2020-01-01 00:00:00",
|
||||
"validate": "datetime"
|
||||
},
|
||||
"Command": {
|
||||
"type": "input",
|
||||
"value": "DowntimeFetch",
|
||||
"display": "hide"
|
||||
},
|
||||
"SuccessInterval": {
|
||||
"type": "input",
|
||||
"value": 30,
|
||||
"display": "hide"
|
||||
},
|
||||
"FailureInterval": {
|
||||
"type": "input",
|
||||
"value": 30,
|
||||
"display": "hide"
|
||||
},
|
||||
"ServerUpdate": {
|
||||
"type": "input",
|
||||
"value": "22:30",
|
||||
"display": "hide"
|
||||
}
|
||||
},
|
||||
"Storage": {
|
||||
"Storage": {
|
||||
"type": "storage",
|
||||
"value": {},
|
||||
"valuetype": "ignore",
|
||||
"display": "disabled"
|
||||
}
|
||||
}
|
||||
},
|
||||
"DowntimeMgmt": {
|
||||
"Downtime": {
|
||||
"Window": {
|
||||
"type": "input",
|
||||
"value": ""
|
||||
},
|
||||
"Title": {
|
||||
"type": "input",
|
||||
"value": "",
|
||||
"display": "disabled"
|
||||
}
|
||||
},
|
||||
"DowntimeStrategy": {
|
||||
"ManageExercise": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
},
|
||||
"ManageDaily": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
}
|
||||
},
|
||||
"Storage": {
|
||||
"Storage": {
|
||||
"type": "storage",
|
||||
"value": {},
|
||||
"valuetype": "ignore",
|
||||
"display": "disabled"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Main": {
|
||||
"Scheduler": {
|
||||
"Enable": {
|
||||
@@ -14060,6 +14023,22 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"DowntimeFetch": {
|
||||
"DowntimeFetch": {
|
||||
"FetcherTest": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
}
|
||||
},
|
||||
"Storage": {
|
||||
"Storage": {
|
||||
"type": "storage",
|
||||
"value": {},
|
||||
"valuetype": "ignore",
|
||||
"display": "disabled"
|
||||
}
|
||||
}
|
||||
},
|
||||
"AzurLaneUncensored": {
|
||||
"AzurLaneUncensored": {
|
||||
"Repository": {
|
||||
|
||||
@@ -152,16 +152,15 @@ OldRetire:
|
||||
RetireAmount:
|
||||
value: retire_all
|
||||
option: [ retire_all, retire_10 ]
|
||||
|
||||
# ==================== SmartMgmt ====================
|
||||
|
||||
Downtime:
|
||||
Window: ''
|
||||
Title:
|
||||
value: ''
|
||||
display: disabled
|
||||
DowntimeStrategy:
|
||||
AutoFetch: false
|
||||
ManageExercise: false
|
||||
ExerciseClearTime: '15:00:00'
|
||||
ManageDaily: false
|
||||
|
||||
# ==================== Farm ====================
|
||||
@@ -893,6 +892,7 @@ PrivateQuarters:
|
||||
TargetShip:
|
||||
value: anchorage
|
||||
option: [ anchorage, noshiro, sirius, new_jersey, taihou, aegir, nakhimov ]
|
||||
|
||||
# ==================== Daily ====================
|
||||
|
||||
Daily:
|
||||
@@ -1095,6 +1095,8 @@ AzurLaneUncensored:
|
||||
display: disabled
|
||||
GameManager:
|
||||
AutoRestart: true
|
||||
DowntimeFetch:
|
||||
FetcherTest: false
|
||||
|
||||
# ==================== Dashboard ====================
|
||||
Oil:
|
||||
|
||||
@@ -5,17 +5,10 @@
|
||||
"tasks": [
|
||||
"Alas",
|
||||
"General",
|
||||
"DowntimeMgmt",
|
||||
"Restart"
|
||||
]
|
||||
},
|
||||
"SmartMgmt": {
|
||||
"menu": "collapse",
|
||||
"page": "setting",
|
||||
"tasks": [
|
||||
"DowntimeFetch",
|
||||
"DowntimeMgmt"
|
||||
]
|
||||
},
|
||||
"Farm": {
|
||||
"menu": "collapse",
|
||||
"page": "setting",
|
||||
@@ -115,6 +108,7 @@
|
||||
"BoxDisassemble",
|
||||
"IslandPearl",
|
||||
"Benchmark",
|
||||
"DowntimeFetch",
|
||||
"AzurLaneUncensored",
|
||||
"GameManager"
|
||||
]
|
||||
|
||||
@@ -15,14 +15,6 @@ Restart:
|
||||
FailureInterval: 0
|
||||
ServerUpdate: 00:00
|
||||
|
||||
# ==================== SmartMgmt ====================
|
||||
|
||||
DowntimeFetch:
|
||||
Scheduler:
|
||||
SuccessInterval: 30
|
||||
FailureInterval: 30
|
||||
ServerUpdate: "22:30"
|
||||
|
||||
# ==================== Farm ====================
|
||||
|
||||
Main:
|
||||
|
||||
@@ -19,20 +19,11 @@ Alas:
|
||||
- OneClickRetire
|
||||
- Enhance
|
||||
- OldRetire
|
||||
Restart:
|
||||
- Scheduler
|
||||
|
||||
# ==================== SmartMgmt ====================
|
||||
|
||||
SmartMgmt:
|
||||
menu: 'collapse'
|
||||
page: 'setting'
|
||||
tasks:
|
||||
DowntimeFetch:
|
||||
- Scheduler
|
||||
DowntimeMgmt:
|
||||
- Downtime
|
||||
- DowntimeStrategy
|
||||
Restart:
|
||||
- Scheduler
|
||||
|
||||
# ==================== Farm ====================
|
||||
|
||||
@@ -376,6 +367,8 @@ Tool:
|
||||
- IslandPearl
|
||||
Benchmark:
|
||||
- Benchmark
|
||||
DowntimeFetch:
|
||||
- DowntimeFetch
|
||||
AzurLaneUncensored:
|
||||
- AzurLaneUncensored
|
||||
GameManager:
|
||||
|
||||
Reference in New Issue
Block a user