1
This commit is contained in:
parent
db8f54e2ab
commit
3bd7893e4f
@ -24,6 +24,21 @@ class BattleController extends BaseAuthedController {
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
http post
|
||||||
|
php://input
|
||||||
|
{
|
||||||
|
"team_list": [
|
||||||
|
[
|
||||||
|
"team_id": 1,
|
||||||
|
"members": [
|
||||||
|
"account_id": ""
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
public function battleReport()
|
public function battleReport()
|
||||||
{
|
{
|
||||||
$userInfo = $this->_getOrmUserInfo();
|
$userInfo = $this->_getOrmUserInfo();
|
||||||
@ -31,6 +46,12 @@ class BattleController extends BaseAuthedController {
|
|||||||
$this->_rspErr(1, 'Without this player1');
|
$this->_rspErr(1, 'Without this player1');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$data = json_decode(file_get_contents('php://input'), true);
|
||||||
|
$teamList = array();
|
||||||
|
if ($data) {
|
||||||
|
$teamList = $data['team_list'];
|
||||||
|
}
|
||||||
|
|
||||||
$battleDataService = new services\BattleDataService();
|
$battleDataService = new services\BattleDataService();
|
||||||
$battleDataService->updateBattleData();
|
$battleDataService->updateBattleData();
|
||||||
SqlHelper::insert(
|
SqlHelper::insert(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user