修正ba抽卡资源下载地址

This commit is contained in:
MWTJC 2024-03-22 22:46:48 +08:00 committed by GitHub
parent 379dd4d598
commit 4fdcac5cf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,7 +113,7 @@ class BaHandle(BaseHandle[BaChar]):
async def _update_info(self):
info = {}
url = "https://lonqie.github.io/SchaleDB/data/cn/students.min.json?v=49"
url = "https://schale.gg/data/cn/students.min.json?v=49"
result = (await AsyncHttpx.get(url)).json()
if not result:
logger.warning(f"更新 {self.game_name_cn} 出错")
@ -122,10 +122,11 @@ class BaHandle(BaseHandle[BaChar]):
for char in result:
try:
name = char["Name"]
id = str(char["Id"])
avatar = (
"https://github.com/lonqie/SchaleDB/raw/main/images/student/icon/"
+ char["CollectionTexture"]
+ ".png"
"https://github.com/SchaleDB/SchaleDB/raw/main/images/student/icon/"
+ id
+ ".webp"
)
star = char["StarGrade"]
except IndexError: