Merge pull request #419 from JiaranYa/impro-promote_level

🐞 fix: 修复获取突破
This commit is contained in:
惜月 2023-03-31 13:35:52 +08:00 committed by GitHub
commit 3c0caafa85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,7 +306,7 @@ class Character(Model):
character.character_id = data['avatarId']
character.level = int(data['propMap']['4001']['val'])
character.fetter = data['fetterInfo']['expLevel']
character.promote_level = int(data['propMap']['1002']['val'])
character.promote_level = int(data['propMap']['1002'].get('val', 0))
if name in ['', '']:
character.region = '未知'
character.rarity = 5