From ad122e7531cbc44c9b3f86781ede16f2b7ba4a0d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 6 May 2022 10:10:44 +0800 Subject: [PATCH] 1 --- webapp/controller/BattleController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/controller/BattleController.class.php b/webapp/controller/BattleController.class.php index 5dce83ae..eb9103fd 100644 --- a/webapp/controller/BattleController.class.php +++ b/webapp/controller/BattleController.class.php @@ -45,6 +45,7 @@ class BattleController extends BaseAuthedController { $data = array( 'members' => array() ); + error_log(json_encode($_REQUEST)); error_log(json_encode($members)); foreach ($members as $member) { $info = array( @@ -66,7 +67,7 @@ class BattleController extends BaseAuthedController { $heroDb = Hero::findByAccountId($member['account_id'], $member['hero_uniid']); if ($heroDb) { $info['is_valid_battle'] = 1; - $info['hero_dto'] = json_encode($Hero::toDto($heroDb)); + $info['hero_dto'] = json_encode(Hero::toDto($heroDb)); } else { $info['errcode'] = 51; $info['errmsg'] = 'paramater error';