From 01d8bd21d41fbae3d6dec2e4f764812919ae226d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 22 Nov 2021 19:15:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4historyInfo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/Role.py | 22 --------------------- webapp/controller/RoleController.class.php | 23 ---------------------- 2 files changed, 45 deletions(-) diff --git a/doc/Role.py b/doc/Role.py index 79a68589..6cd29668 100644 --- a/doc/Role.py +++ b/doc/Role.py @@ -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', diff --git a/webapp/controller/RoleController.class.php b/webapp/controller/RoleController.class.php index 36103cd8..9b32b3c6 100644 --- a/webapp/controller/RoleController.class.php +++ b/webapp/controller/RoleController.class.php @@ -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'];