This commit is contained in:
2025-04-12 12:11:46 +08:00
parent caa032d1eb
commit 34551c7b35
31 changed files with 1379 additions and 166 deletions
+4 -6
View File
@@ -10,12 +10,10 @@ from api.core.exception import ResponseException
class AlterState:
def __init__(self, value: str, token: str, charcater: Character, equVersion: str,time: int):
self.value = value
try:
self.alter = get_adv_info(value)["class"]
except Exception:
raise ResponseException(f'无效的职业{value}')
def __init__(self, alter: str, token: str, charcater: Character, equVersion: str,time: int):
if alter is None:
raise ResponseException('无效的职业')
self.alter = alter
self.token = token
self.origin = self.alter.split('.')[-1]
self.character = charcater