🎨 修改艾特查询头像错误 (#60)

This commit is contained in:
季落 2023-06-08 11:34:34 +08:00 committed by GitHub
parent 11c66a2f8a
commit 336ccbb481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ async def send_srabyss_info(bot: Bot, ev: Event):
return return
await bot.logger.info('开始执行[sr查询深渊信息]') await bot.logger.info('开始执行[sr查询深渊信息]')
uid = await get_uid(bot, ev) uid, user_id = await get_uid(bot, ev, True)
if uid is None: if uid is None:
return await bot.send(UID_HINT) return await bot.send(UID_HINT)
await bot.logger.info('[sr查询深渊信息]uid: {}'.format(uid)) await bot.logger.info('[sr查询深渊信息]uid: {}'.format(uid))
@ -64,5 +64,5 @@ async def send_srabyss_info(bot: Bot, ev: Event):
# data = GsCookie() # data = GsCookie()
# raw_abyss_data = await data.get_spiral_abyss_data(uid, schedule_type) # raw_abyss_data = await data.get_spiral_abyss_data(uid, schedule_type)
# print(raw_abyss_data) # print(raw_abyss_data)
im = await draw_abyss_img(ev.user_id, uid, floor, schedule_type) im = await draw_abyss_img(user_id, uid, floor, schedule_type)
await bot.send(im) await bot.send(im)

View File

@ -32,7 +32,7 @@ async def send_srabyss_info(bot: Bot, ev: Event):
return return
await bot.logger.info('开始执行[sr查询模拟宇宙信息]') await bot.logger.info('开始执行[sr查询模拟宇宙信息]')
uid = await get_uid(bot, ev) uid, user_id = await get_uid(bot, ev, True)
if uid is None: if uid is None:
return await bot.send(UID_HINT) return await bot.send(UID_HINT)
await bot.logger.info('[sr查询模拟宇宙信息]uid: {}'.format(uid)) await bot.logger.info('[sr查询模拟宇宙信息]uid: {}'.format(uid))
@ -63,5 +63,5 @@ async def send_srabyss_info(bot: Bot, ev: Event):
# data = GsCookie() # data = GsCookie()
# raw_rogue_data = await data.get_rogue_data(uid, schedule_type) # raw_rogue_data = await data.get_rogue_data(uid, schedule_type)
# print(raw_rogue_data) # print(raw_rogue_data)
im = await draw_rogue_img(ev.user_id, uid, floor, schedule_type) im = await draw_rogue_img(user_id, uid, floor, schedule_type)
await bot.send(im) await bot.send(im)