mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-31 04:30:29 +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()
|
res = 'base64://' + b64encode(res).decode()
|
||||||
return res
|
return res
|
||||||
elif isinstance(img, bytes):
|
elif isinstance(img, bytes):
|
||||||
return 'base64://' + b64encode(img).decode()
|
return f'[CQ:image,file=base64://{b64encode(img).decode()}]'
|
||||||
else:
|
else:
|
||||||
return f'[CQ:image,file=file:///{str(img)}]'
|
return f'[CQ:image,file=file:///{str(img)}]'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user