This commit is contained in:
aozhiwei 2022-06-14 10:05:52 +08:00
parent f482467242
commit 6bce4811b2

View File

@ -172,6 +172,8 @@ class HeroController extends BaseAuthedController {
$currLevelMeta = mt\HeroLevel::getByLevel($heroDb['hero_lv']);
if ($currLevelMeta) {
$nextLevelMeta = mt\HeroLevel::getByLevel($heroDb['hero_lv'] + 1);
$attrs = $heroDto['attr'];
mt\HeroLevelAttr::addRandAttr($heroDb['hero_lv'] + 1, $attrs);
if ($nextLevelMeta) {
Hero::update($heroUniId,
array(