1
This commit is contained in:
parent
696edee476
commit
3ad16d907e
@ -39,7 +39,7 @@ class BattleController extends BaseAuthedController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$channelId = phpcommon\extractChannel($account_id);
|
$channelId = phpcommon\extractChannel($account_id);
|
||||||
if ($chnanelId == SELFSDK_CHANNEL) {
|
if ($chnanelId == SELFSDK_CHANNEL || $account_id == '') {
|
||||||
//则是机器人
|
//则是机器人
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
@ -52,6 +52,10 @@ class BattleController extends BaseAuthedController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$data = json_decode(file_get_contents('php://input'), true);
|
$data = json_decode(file_get_contents('php://input'), true);
|
||||||
|
/*error_log(json_encode(array(
|
||||||
|
'a' => 'battleReport',
|
||||||
|
'post_data' => $data
|
||||||
|
)));*/
|
||||||
$teamList = array();
|
$teamList = array();
|
||||||
if ($data) {
|
if ($data) {
|
||||||
$teamList = $data['team_list'];
|
$teamList = $data['team_list'];
|
||||||
@ -88,6 +92,17 @@ class BattleController extends BaseAuthedController {
|
|||||||
$this->_rspData($data);
|
$this->_rspData($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
http post
|
||||||
|
php://input
|
||||||
|
{
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
public function reportSettlement()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public function getBattleData()
|
public function getBattleData()
|
||||||
{
|
{
|
||||||
$mode = getReqVal('mode', '');
|
$mode = getReqVal('mode', '');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user