修复导入抽卡链接 (#35)

* 更新抽卡记录网址

* 修复导入抽卡链接时uid获取问题
This commit is contained in:
RBAmeto 2024-09-11 00:11:34 +08:00 committed by GitHub
parent fab498caab
commit f5ca17ebd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ ROGUE_LOCUST_INFO_URL = (
f"{NEW_URL}/game_record/app/hkrpg/api/rogue_locust" # 角色寰宇蝗灾信息接口 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" 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" GET_FP_URL = "https://public-data-api.mihoyo.com/device-fp/api/getFp"

View File

@ -27,7 +27,7 @@ async def send_gacha_log_card_info(bot: Bot, ev: Event):
@sv_get_gachalog_by_link.on_command(f"{PREFIX}导入抽卡链接") @sv_get_gachalog_by_link.on_command(f"{PREFIX}导入抽卡链接")
async def get_gachalog_by_link(bot: Bot, ev: Event): async def get_gachalog_by_link(bot: Bot, ev: Event):
await bot.logger.info("开始执行[sr导入抽卡链接]") 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: if uid is None:
return await bot.send(UID_HINT) return await bot.send(UID_HINT)
gacha_url = ev.text.strip() gacha_url = ev.text.strip()