From f5ca17ebd7a5c0c88a9d2ffc0c1425417a3a845c Mon Sep 17 00:00:00 2001 From: RBAmeto <46624927+RBAmeto@users.noreply.github.com> Date: Wed, 11 Sep 2024 00:11:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5=E6=8A=BD?= =?UTF-8?q?=E5=8D=A1=E9=93=BE=E6=8E=A5=20(#35)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 更新抽卡记录网址 * 修复导入抽卡链接时uid获取问题 --- StarRailUID/sruid_utils/api/mys/api.py | 2 +- StarRailUID/starrailuid_gachalog/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/StarRailUID/sruid_utils/api/mys/api.py b/StarRailUID/sruid_utils/api/mys/api.py index 36393d5..25130a0 100644 --- a/StarRailUID/sruid_utils/api/mys/api.py +++ b/StarRailUID/sruid_utils/api/mys/api.py @@ -53,7 +53,7 @@ ROGUE_LOCUST_INFO_URL = ( f"{NEW_URL}/game_record/app/hkrpg/api/rogue_locust" # 角色寰宇蝗灾信息接口 ) -STAR_RAIL_GACHA_LOG_URL = f"{OLD_URL}/common/gacha_record/api/getGachaLog" +STAR_RAIL_GACHA_LOG_URL = f"https://public-operation-hkrpg.mihoyo.com/common/gacha_record/api/getGachaLog" STAR_RAIL_GACHA_LOG_URL_OS = f"{OS_OLD_URL}/common/gacha_record/api/getGachaLog" GET_FP_URL = "https://public-data-api.mihoyo.com/device-fp/api/getFp" diff --git a/StarRailUID/starrailuid_gachalog/__init__.py b/StarRailUID/starrailuid_gachalog/__init__.py index bb46435..327d338 100644 --- a/StarRailUID/starrailuid_gachalog/__init__.py +++ b/StarRailUID/starrailuid_gachalog/__init__.py @@ -27,7 +27,7 @@ async def send_gacha_log_card_info(bot: Bot, ev: Event): @sv_get_gachalog_by_link.on_command(f"{PREFIX}导入抽卡链接") async def get_gachalog_by_link(bot: Bot, ev: Event): await bot.logger.info("开始执行[sr导入抽卡链接]") - uid = await get_uid(bot, ev, GsBind, "sr") + uid = await get_uid(bot, ev, GsBind, "sr", False, None) if uid is None: return await bot.send(UID_HINT) gacha_url = ev.text.strip()