1
This commit is contained in:
parent
4e00f9056c
commit
e531cc603a
@ -49,6 +49,20 @@ class Battle(object):
|
||||
_common.RspHead(),
|
||||
['info', _common.BattleSettlement(), '战绩详情'],
|
||||
]
|
||||
},{
|
||||
'method': 'GET',
|
||||
'name': 'personalReport',
|
||||
'desc': '个人战绩',
|
||||
'group': 'Battle',
|
||||
'url': 'webapp/index.php?c=Battle&a=personalReport',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['room_mode', '', ' 房间模式']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['items', [], '战斗奖励'],
|
||||
]
|
||||
},
|
||||
]
|
||||
self.internalApis = [
|
||||
|
@ -138,19 +138,20 @@ class BattleController extends BaseAuthedController {
|
||||
switch ($status){
|
||||
case \mt\ServerTask::ACCOMPLISH_MOBA_STATE :{
|
||||
if ($mode == \services\TameBattleDataService::ROOM_MODE_PVP){
|
||||
$item = array(
|
||||
array_push($item,array(
|
||||
"item_id" => 300001,
|
||||
"item_num" => 1,
|
||||
);
|
||||
));
|
||||
|
||||
}
|
||||
}
|
||||
break;
|
||||
case \mt\ServerTask::ACCOMPLISH_PVP_STATE : {
|
||||
if ($mode == \services\TameBattleDataService::ROOM_MODE_MOBA){
|
||||
$item = array(
|
||||
array_push($item,array(
|
||||
"item_id" => 300001,
|
||||
"item_num" => 1,
|
||||
);
|
||||
));
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -159,7 +160,9 @@ class BattleController extends BaseAuthedController {
|
||||
if ($item){
|
||||
Bag::addItem($item['item_id'],$item['item_num']);
|
||||
}
|
||||
$this->_rspData($item);
|
||||
$this->_rspData(array(
|
||||
"items" => $item
|
||||
));
|
||||
}
|
||||
|
||||
public function teamReport()
|
||||
|
Loading…
x
Reference in New Issue
Block a user