1
This commit is contained in:
parent
c08664bec2
commit
1fcfd6169b
@ -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,
|
||||
)));
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user