This commit is contained in:
aozhiwei 2024-04-23 11:21:28 +08:00
parent 8c8a28e157
commit 103962bd71
2 changed files with 7 additions and 2 deletions

View File

@ -594,7 +594,7 @@ class UserController extends BaseAuthedController {
$heroInfo = Hero::toDto($heroDb); $heroInfo = Hero::toDto($heroDb);
$heroInfo['avatar_info'] = Hero::avatarInfo($heroDb); $heroInfo['avatar_info'] = Hero::avatarInfo($heroDb);
{ {
$preset = HeroPreset::getHeroPreset($heroUniId); HeroPreset::upsertPresetNew($heroUniId, $specSkill);
$heroInfo['spec_skill'] = '' . $specSkill; $heroInfo['spec_skill'] = '' . $specSkill;
} }
myself()->_rspData(array( myself()->_rspData(array(

View File

@ -93,4 +93,9 @@ class HeroPreset extends BaseModel {
) )
); );
} }
}
public static function upsertPresetNew($heroId,$skillId){
self::upsertPreset($heroId, $skillId, 0, 0, 0);
}
}