This commit is contained in:
hujiabin 2022-08-26 19:34:32 +08:00
parent 1e78961bc1
commit a8f9998897

View File

@ -55,9 +55,9 @@ class HeroController extends BaseAuthedController {
array_push($chipAttr,$v);
}
}
$hero_attr = emptyReplace(json_decode($hero['rand_attr'], true), array());
$hero_attr = emptyReplace(json_decode($hero['attr'], true), array());
\mt\AttrHelper::mergeAttr($hero_attr,$chipAttr);
$hero['rand_attr'] = $hero_attr;
$hero['attr'] = $hero_attr;
$chipCore = [];
if (count($chipIdsArr) == 4){
$min = 15;