This commit is contained in:
aozhiwei 2022-01-05 18:53:09 +08:00
parent c38e9d3cb1
commit 1d42bf8c6b
2 changed files with 2 additions and 1 deletions

View File

@ -156,6 +156,7 @@ class HeroController extends BaseAuthedController {
$this->_rspErr(3, $this->_getLackItemErrMsg($lackItem));
return;
}
$oldAttr = json_decode($heroDb['rand_attr'], true);
$randAttr = array();
$this->_decItems($costItems);
Hero::update($heroUniId,

View File

@ -17,7 +17,7 @@ class HeroLevel {
return getXVal(self::$qualityLevelHash, $quality . '_' . $level, null);
}
public static function getRandAttr($initMeta, $currMeta)
public static function getRandAttr($initMeta, $currMeta, $oldAttr, &$newAttr)
{
}