Skip to content

Commit

Permalink
🎨 添加警告
Browse files Browse the repository at this point in the history
  • Loading branch information
KimigaiiWuyi committed May 15, 2024
1 parent d5586e4 commit 11b53e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion GenshinUID/genshinuid_enka/mono/Character.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ async def get_fight_prop(self) -> Dict:
zf = self.power_list['A霜华矢·霜华绽发伤害']
v2 = int(zf['value'][index][:-1])
v1 = int(i[:-1])
val.append(f'{v1 +v2}%')
val.append(f'{v1 + v2}%')

self.power_list[power_name] = {
'name': power_name,
Expand Down
2 changes: 2 additions & 0 deletions GenshinUID/genshinuid_gachalog/export_and_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 11b53e5

Please sign in to comment.