1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 11:19:26 +08:00

add: keep 1 level white flagship when auto retire

This commit is contained in:
0O0o0oOoO00
2026-03-20 22:50:36 +08:00
parent 289652382a
commit b777b9656d
15 changed files with 77 additions and 0 deletions

View File

@@ -57,6 +57,9 @@ class CrackApi:
class ChapterAutoClearStepInterval(BaseModel):
interval: float
class AutoRetireKeepWhiteFlagshipCount(BaseModel):
count: int
def __init__(self, base_url, timeout=10):
self.api_url = base_url
self.timeout = timeout
@@ -422,6 +425,9 @@ class CrackApi:
def disable_auto_once_again(self):
self.post("disable_auto_once_again")
def set_white_flagship_keep_count(self, param: AutoRetireKeepWhiteFlagshipCount):
self.post("set_white_flagship_keep_count", data=param.json())
def enable_auto_retire(self):
self.post("enable_auto_retire")