mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-08 13:06:00 +08:00
🐛 保存文件
This commit is contained in:
parent
64ccc5786f
commit
456fed244b
@ -124,8 +124,8 @@ def to_json(msg: list, name: str, uin: str):
|
|||||||
|
|
||||||
|
|
||||||
def store_file(path: Path, file: str):
|
def store_file(path: Path, file: str):
|
||||||
file_content = base64.b64decode(file).decode()
|
file_content = base64.b64decode(file)
|
||||||
with open(path, 'w') as f:
|
with open(path, 'wb') as f:
|
||||||
f.write(file_content)
|
f.write(file_content)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user