From fa0cd29c639df84129dfee172a60ca4babe8931f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 22 Apr 2024 21:12:40 +0800 Subject: [PATCH] 1 --- webapp/controller/BattleController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/controller/BattleController.class.php b/webapp/controller/BattleController.class.php index f697b0f5..5b6f9abc 100644 --- a/webapp/controller/BattleController.class.php +++ b/webapp/controller/BattleController.class.php @@ -706,7 +706,6 @@ class BattleController extends BaseAuthedController { $info['weapon_uuid1'] = $userPresetInfo['presetInfo']['weapon_uid1']; $info['weapon_uuid2'] = $userPresetInfo['presetInfo']['weapon_uid2']; $chipPageDb = ChipPage::find($userPresetInfo['hero_uniId']); - $info['chip_page'] = ChipPage::toDtoBattle($chipPageDb); $info['honor_info'] = $userPresetInfo['honor_info']; $battleDb = Battle::find($accountId); if ($battleDb){ @@ -719,6 +718,7 @@ class BattleController extends BaseAuthedController { if ($heroDb) { $info['is_valid_battle'] = 1; $info['hero_dto'] = Hero::toDto($heroDb); + $info['hero_dto']['chip_page'] = ChipPage::toDtoBattle($chipPageDb); } else { $info['errcode'] = 51; $info['errmsg'] = 'paramater error';