diff --git a/doc/Role.py b/doc/Role.py index adb6e23..0e2f758 100644 --- a/doc/Role.py +++ b/doc/Role.py @@ -178,17 +178,6 @@ class Role(object): ], '数据'] ] }, - { - 'desc': '点赞(该接口貌似没用)addGiveMeFive', - 'group': 'NPlayerInfo', - 'url': 'webapp/index.php?c=NPlayerInfo&a=addGiveMeFive', - 'params': [ - _common.ReqHead(), - ], - 'response': [ - _common.RspHead(), - ] - }, { 'desc': 'getPlayerInfo', 'group': 'NPlayerInfo', diff --git a/webapp/controller/RoleController.class.php b/webapp/controller/RoleController.class.php index 0b076ca..ebe6ad4 100644 --- a/webapp/controller/RoleController.class.php +++ b/webapp/controller/RoleController.class.php @@ -579,33 +579,8 @@ class RoleController extends BaseAuthedController { $this->sendDataToClient(3, "ok", $userInfo); } - public function addGiveMeFive() - { - phpcommon\SqlHelper::upsert - ($this->getSelfMysql(), - 'player_info', - array( - 'accountid' => $this->getAccountId() - ), - array( - 'give_me_five' => function () { - return 'give_me_five + 1'; - }, - 'modifytime' => $this->getNowTime() - ), - array( - 'accountid' => $this->getAccountId(), - 'give_me_five' => 1, - 'createtime' => $this->getNowTime(), - 'modifytime' => $this->getNowTime() - ) - ); - $this->sendDataToClient(100,"getGiveMeFiveTest",null); - } - public function getPlayerInfo() { - $account_id = $_REQUEST['acctID']; $conn = $this->getMysql($account_id); $from = $_REQUEST['from'];