mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-07-15 11:13:53 +00:00
🎨 添加警告
This commit is contained in:
@ -31,6 +31,8 @@ async def import_gachalogs(history_url: str, type: str, uid: str) -> str:
|
||||
history_data = json.loads(data_bytes.decode())
|
||||
except UnicodeDecodeError:
|
||||
history_data = json.loads(data_bytes.decode('gbk'))
|
||||
except json.decoder.JSONDecodeError:
|
||||
return '请传入正确的JSON格式文件!'
|
||||
if 'info' in history_data and 'uid' in history_data['info']:
|
||||
data_uid = history_data['info']['uid']
|
||||
if data_uid != uid:
|
||||
|
Reference in New Issue
Block a user