移除historyInfo
This commit is contained in:
parent
1b08f10475
commit
01d8bd21d4
22
doc/Role.py
22
doc/Role.py
@ -40,17 +40,6 @@ class Role(object):
|
|||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
'desc': 'historyRecord',
|
|
||||||
'group': 'Role',
|
|
||||||
'url': 'webapp/index.php?c=Role&a=historyRecord',
|
|
||||||
'params': [
|
|
||||||
_common.ReqHead(),
|
|
||||||
],
|
|
||||||
'response': [
|
|
||||||
_common.RspHead(),
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
'desc': 'shareGame',
|
'desc': 'shareGame',
|
||||||
'group': 'Role',
|
'group': 'Role',
|
||||||
@ -62,17 +51,6 @@ class Role(object):
|
|||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
'desc': 'historyInfo',
|
|
||||||
'group': 'Role',
|
|
||||||
'url': 'webapp/index.php?c=Role&a=historyInfo',
|
|
||||||
'params': [
|
|
||||||
_common.ReqHead(),
|
|
||||||
],
|
|
||||||
'response': [
|
|
||||||
_common.RspHead(),
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
'desc': 'collectReward',
|
'desc': 'collectReward',
|
||||||
'group': 'Role',
|
'group': 'Role',
|
||||||
|
@ -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()
|
public function collectReward()
|
||||||
{
|
{
|
||||||
$account_id = $_REQUEST['account_id'];
|
$account_id = $_REQUEST['account_id'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user