mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
修正ba抽卡资源下载地址
This commit is contained in:
parent
379dd4d598
commit
4fdcac5cf9
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user