1
This commit is contained in:
parent
8c8a28e157
commit
103962bd71
@ -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(
|
||||||
|
@ -93,4 +93,9 @@ class HeroPreset extends BaseModel {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
public static function upsertPresetNew($heroId,$skillId){
|
||||||
|
self::upsertPreset($heroId, $skillId, 0, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user