From 4fdcac5cf95f3999b29e69eca8db64d7029c8636 Mon Sep 17 00:00:00 2001 From: MWTJC <74529082+MWTJC@users.noreply.github.com> Date: Fri, 22 Mar 2024 22:46:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3ba=E6=8A=BD=E5=8D=A1=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E4=B8=8B=E8=BD=BD=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/draw_card/handles/ba_handle.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/draw_card/handles/ba_handle.py b/plugins/draw_card/handles/ba_handle.py index 5fe00462..658bb2df 100644 --- a/plugins/draw_card/handles/ba_handle.py +++ b/plugins/draw_card/handles/ba_handle.py @@ -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: