移除historyInfo

This commit is contained in:
aozhiwei 2021-11-22 19:15:22 +08:00
parent 1b08f10475
commit 01d8bd21d4
2 changed files with 0 additions and 45 deletions

View File

@ -40,17 +40,6 @@ class Role(object):
_common.RspHead(),
]
},
{
'desc': 'historyRecord',
'group': 'Role',
'url': 'webapp/index.php?c=Role&a=historyRecord',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'shareGame',
'group': 'Role',
@ -62,17 +51,6 @@ class Role(object):
_common.RspHead(),
]
},
{
'desc': 'historyInfo',
'group': 'Role',
'url': 'webapp/index.php?c=Role&a=historyInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'collectReward',
'group': 'Role',

View File

@ -414,29 +414,6 @@ class RoleController extends BaseAuthedController {
));
}
public function historyInfo()
{
$account_id = $_REQUEST['account_id'];
$conn = $this->getMysql($account_id);
$row = $conn->execQueryOne('SELECT * FROM user WHERE accountid=:accountid;',
array(
':accountid' => $account_id
));
if (!$row) {
phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家');
return;
}
echo json_encode(array(
'errcode' => 0,
'errmsg' => '',
'kill_his' => $row['kill_his'],
'alive_time_his' => $row['alive_time_his'],
'harm_his' => $row['harm_his'],
'add_HP_his' => $row['add_HP_his']
));
}
public function collectReward()
{
$account_id = $_REQUEST['account_id'];