From 456fed244b98f5d09373ac54b71f56888a848864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wuyi=E6=97=A0=E7=96=91?= <444835641@qq.com> Date: Thu, 23 Jan 2025 21:50:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=9D=E5=AD=98=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GenshinUID/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GenshinUID/client.py b/GenshinUID/client.py index 4ed70060..81571bbe 100644 --- a/GenshinUID/client.py +++ b/GenshinUID/client.py @@ -124,8 +124,8 @@ def to_json(msg: list, name: str, uin: str): def store_file(path: Path, file: str): - file_content = base64.b64decode(file).decode() - with open(path, 'w') as f: + file_content = base64.b64decode(file) + with open(path, 'wb') as f: f.write(file_content)