From bc5e13ba72b707213c44284cdc760315140dd892 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 20 Oct 2022 14:21:56 +0800 Subject: [PATCH] 1 --- webapp/controller/BattleController.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/webapp/controller/BattleController.class.php b/webapp/controller/BattleController.class.php index f2a98b9b..86e900a9 100644 --- a/webapp/controller/BattleController.class.php +++ b/webapp/controller/BattleController.class.php @@ -119,6 +119,7 @@ class BattleController extends BaseAuthedController { public function getBattleDataNew() { + error_log(json_encode($_REQUEST)); $members = json_decode(getReqVal('members', ''), true); $data = array( 'members' => array() @@ -128,8 +129,8 @@ class BattleController extends BaseAuthedController { 'account_id' => $member['account_id'], 'session_id' => $member['session_id'], 'hero_uniid' => $member['hero_uniid'], - 'weapon_uniid1' => $member['weapon_uniid1'], - 'weapon_uniid2' => $member['weapon_uniid2'], + 'weapon_uuid1' => $member['weapon_uuid1'], + 'weapon_uuid2' => $member['weapon_uuid2'], 'battle_uuid' => $member['battle_uuid'], 'hero_dto' => '', 'weapon_dto1' => '', @@ -157,9 +158,9 @@ class BattleController extends BaseAuthedController { } { for ($i = 1; $i <= 2; ++$i) { - if (isset($member['weapon_uniid' . $i])) { + if (isset($member['weapon_uuid' . $i])) { $gunDb = Gun::findByAccountId($member['account_id'], - $member['weapon_uniid' . $i]); + $member['weapon_uuid' . $i]); if ($gunDb) { $info['weapon_dto' . $i] = Gun::toDto($gunDb); }