mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
🐞 fix: 修复获取突破
修复获取0级突破时产生的错误
This commit is contained in:
parent
46a5445ac9
commit
404505f3f3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user