mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-06-01 13:09:56 +08:00
修改:base64前缀匹配
This commit is contained in:
parent
024a1debd7
commit
434106c933
@ -56,8 +56,8 @@ async def send_charcard_list(bot: HoshinoBot, ev: CQEvent):
|
|||||||
uid = await select_db(int(ev.sender['user_id']), mode='uid')
|
uid = await select_db(int(ev.sender['user_id']), mode='uid')
|
||||||
uid = uid[0]
|
uid = uid[0]
|
||||||
im = await draw_cahrcard_list(uid, limit)
|
im = await draw_cahrcard_list(uid, limit)
|
||||||
|
|
||||||
if isinstance(im, bytes):
|
if im.startswith('base64://'):
|
||||||
await bot.send(ev, MessageSegment.image(im))
|
await bot.send(ev, MessageSegment.image(im))
|
||||||
else:
|
else:
|
||||||
await bot.send(ev, str(im))
|
await bot.send(ev, str(im))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user