mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-30 04:00:31 +08:00
🐛 修复b64转码的问题
This commit is contained in:
parent
ebb6b8f3d2
commit
9ef8b4000b
@ -27,6 +27,6 @@ async def convert_img(
|
||||
res = 'base64://' + b64encode(res).decode()
|
||||
return res
|
||||
elif isinstance(img, bytes):
|
||||
return 'base64://' + b64encode(img).decode()
|
||||
return f'[CQ:image,file=base64://{b64encode(img).decode()}]'
|
||||
else:
|
||||
return f'[CQ:image,file=file:///{str(img)}]'
|
||||
|
Loading…
x
Reference in New Issue
Block a user