Skip to content

Commit

Permalink
让大乱斗 Buff 兼容老版本 json 文件
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Jun 30, 2024
1 parent 9129817 commit 2b44540
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/lol/aram.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ def __needUpdate(self):
except:
return True

# 兼容老版本的 json
if AramBuff.data.get('version') == None:
print('hi')
return True

return AramBuff.getDataVersion() != lolVersion

@classmethod
Expand Down

0 comments on commit 2b44540

Please sign in to comment.