diff --git a/webapp/controller/BaseController.class.php b/webapp/controller/BaseController.class.php index 7c4bd9ab..7ad36cfa 100644 --- a/webapp/controller/BaseController.class.php +++ b/webapp/controller/BaseController.class.php @@ -84,6 +84,8 @@ class BaseController { { if (SERVER_ENV != _ONLINE) { error_log(json_encode(array( + 'c' => getReqVal('c', ''), + 'a' => getReqVal('a', ''), 'errcode' => $errcode, 'errmsg' => $errmsg, ))); diff --git a/webapp/controller/BattleController.class.php b/webapp/controller/BattleController.class.php index 9d09af22..e00ad016 100644 --- a/webapp/controller/BattleController.class.php +++ b/webapp/controller/BattleController.class.php @@ -134,6 +134,7 @@ class BattleController extends BaseAuthedController { public function teamReport() { + error_log('teamReport'); $userInfo = $this->_getOrmUserInfo(); if (!$userInfo) { $this->_rspErr(1, 'Without this player1'); @@ -207,12 +208,18 @@ class BattleController extends BaseAuthedController { } public function roomReport(){ + if (myself()->_getAccountId() == '6513_2006_U1JcRueKMQxN9BDw8p7pu61gfdzsS7G3') { + error_log('room report'); + } $userInfo = $this->_getOrmUserInfo(); if (!$userInfo) { $this->_rspErr(1, 'Without this player1'); return; } $input = json_decode(file_get_contents('php://input'), true); + if (myself()->_getAccountId() == '6513_2006_U1JcRueKMQxN9BDw8p7pu61gfdzsS7G3') { + error_log(json_encode($input)); + } $roomBattleDataService = new services\RoomBattleDataService(); $roomBattleDataService->mapMode = getXVal($input,'map_mode', 0); $roomBattleDataService->inputData = $input;