From a8f9998897201c4f9097e9e40c426ab395294ec9 Mon Sep 17 00:00:00 2001 From: hujiabin Date: Fri, 26 Aug 2022 19:34:32 +0800 Subject: [PATCH] 1 --- webapp/controller/HeroController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index 629d061b..418f309c 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -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;