移除historyRecord

This commit is contained in:
aozhiwei 2021-11-22 19:13:19 +08:00
parent 240831aea6
commit 1b08f10475
2 changed files with 7 additions and 62 deletions

View File

@ -19,7 +19,7 @@ class Role(object):
]
},
{
'desc': 'clientBattleReport',
'desc': '客户端战报clientBattleReport',
'group': 'Role',
'url': 'webapp/index.php?c=Role&a=clientBattleReport',
'params': [
@ -40,28 +40,6 @@ class Role(object):
_common.RspHead(),
]
},
{
'desc': 'bioBattleReport',
'group': 'Role',
'url': 'webapp/index.php?c=Role&a=bioBattleReport',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'oldBattleReport',
'group': 'Role',
'url': 'webapp/index.php?c=Role&a=oldBattleReport',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'historyRecord',
'group': 'Role',

View File

@ -180,7 +180,7 @@ class RoleController extends BaseAuthedController {
$this->oldBattleReport();
}
public function oldBattleReport()
private function oldBattleReport()
{
$account_id = $_REQUEST['account_id']; //账号
$conn = $this->getMysql($account_id);
@ -402,39 +402,6 @@ class RoleController extends BaseAuthedController {
));
}
public function historyRecord()
{
$account_id = $_REQUEST['account_id'];
$conn = $this->getMysql($account_id);
$record_list = array();
$rowCount = $conn->execQueryRowCount('SELECT * FROM history_record WHERE accountid=:accountid;',
array(
':accountid' => $account_id
));
if ($rowCount != 0) {
$rows = $conn->execQuery('SELECT * FROM history_record WHERE accountid=:account_id order by game_time desc limit 0,10;',
array(
':account_id' => $account_id
));
foreach ($rows as $row) {
array_push($record_list, array(
'map_name' => $row['map_name'],
'game_time' => $row['game_time'],
'rank' => $row['rank'],
'kills' => $row['kills'],
'harms' => $row['harms'],
'hurts' => $row['hurts'],
'alive_time' => $row['alive_time']
));
}
}
echo json_encode(array(
'errcode' => 0,
'errmsg' => '',
'record_list' => $record_list
));
}
public function shareGame()
{
$account_id = $_REQUEST['account_id'];