This commit is contained in:
aozhiwei 2024-04-03 17:03:37 +08:00
parent c08664bec2
commit 1fcfd6169b
2 changed files with 9 additions and 0 deletions

View File

@ -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,
)));

View File

@ -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;