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):
|
async def _update_info(self):
|
||||||
info = {}
|
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()
|
result = (await AsyncHttpx.get(url)).json()
|
||||||
if not result:
|
if not result:
|
||||||
logger.warning(f"更新 {self.game_name_cn} 出错")
|
logger.warning(f"更新 {self.game_name_cn} 出错")
|
||||||
@ -122,10 +122,11 @@ class BaHandle(BaseHandle[BaChar]):
|
|||||||
for char in result:
|
for char in result:
|
||||||
try:
|
try:
|
||||||
name = char["Name"]
|
name = char["Name"]
|
||||||
|
id = str(char["Id"])
|
||||||
avatar = (
|
avatar = (
|
||||||
"https://github.com/lonqie/SchaleDB/raw/main/images/student/icon/"
|
"https://github.com/SchaleDB/SchaleDB/raw/main/images/student/icon/"
|
||||||
+ char["CollectionTexture"]
|
+ id
|
||||||
+ ".png"
|
+ ".webp"
|
||||||
)
|
)
|
||||||
star = char["StarGrade"]
|
star = char["StarGrade"]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user