🐞 fix: 修复获取突破

修复获取0级突破时产生的错误
This commit is contained in:
JiaranYa 2023-03-31 07:24:44 +02:00
parent 46a5445ac9
commit 404505f3f3

View File

@ -306,7 +306,7 @@ class Character(Model):
character.character_id = data['avatarId'] character.character_id = data['avatarId']
character.level = int(data['propMap']['4001']['val']) character.level = int(data['propMap']['4001']['val'])
character.fetter = data['fetterInfo']['expLevel'] 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 ['', '']: if name in ['', '']:
character.region = '未知' character.region = '未知'
character.rarity = 5 character.rarity = 5