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:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user