diff --git a/doc/NPlayerInfo.py b/doc/NPlayerInfo.py index 88516afd..46bbad91 100644 --- a/doc/NPlayerInfo.py +++ b/doc/NPlayerInfo.py @@ -6,17 +6,6 @@ class NPlayerInfo(object): def __init__(self): self.apis = [ - { - 'desc': 'sendGMFToClient', - 'group': 'NPlayerInfo', - 'url': 'webapp/index.php?c=NPlayerInfo&a=sendGMFToClient', - 'params': [ - _common.ReqHead(), - ], - 'response': [ - _common.RspHead(), - ] - }, { 'desc': 'addGiveMeFive', 'group': 'NPlayerInfo', @@ -61,26 +50,4 @@ class NPlayerInfo(object): _common.RspHead(), ] }, - { - 'desc': 'getGunInfo', - 'group': 'NPlayer', - 'url': 'webapp/index.php?c=NPlayer&a=getGunInfo', - 'params': [ - _common.ReqHead(), - ], - 'response': [ - _common.RspHead(), - ] - }, - { - 'desc': 'getPlayerLv', - 'group': 'NPlayer', - 'url': 'webapp/index.php?c=NPlayer&a=getPlayerLv', - 'params': [ - _common.ReqHead(), - ], - 'response': [ - _common.RspHead(), - ] - }, ] diff --git a/webapp/controller/NPlayerInfoController.class.php b/webapp/controller/NPlayerInfoController.class.php index dbda218e..6628f0bf 100644 --- a/webapp/controller/NPlayerInfoController.class.php +++ b/webapp/controller/NPlayerInfoController.class.php @@ -16,11 +16,7 @@ class NPlayerInfoController extends BaseAuthedController { return $giveMeFiveCnt; } - public function sendGMFToClient() - { - $tmpCnt = $this->getGiveMeFive(); - $this->sendDataToClient(100,"getGiveMeFive",$tmpCnt); - } + public function addGiveMeFive()//玩家被点赞一次 { //error_log("玩家被点赞===".$this->getAccountId()); @@ -229,32 +225,5 @@ class NPlayerInfoController extends BaseAuthedController { // $sqlStr = "SELECT * FROM user WHERE accountid=:accountid; "; // $row = $conn->execQuery($sqlStr,array(':accountid' => $account_id)); } - public function getGunInfo() - { - $account_id = $_REQUEST['account_id']; - $conn = $this->getMysql($account_id); - - // $row = $conn->execQueryOne('SELECT guildcoin_num FROM user WHERE accountid=:accountid;', - // array( - // ':accountid' => $account_id - // )); - $sqlStr = "SELECT * FROM gun_intensify WHERE accountid=:accountid; "; - $row = $conn->execQuery($sqlStr,array(':accountid' => $account_id)); - - $this->sendDataToClient(0,"test02",$row); - } - public function getPlayerLv() - { - $account_id = $_REQUEST['account_id']; - $conn = $this->getMysql($account_id); - - - $sqlStr = "SELECT lv,lv_exp,money_of_week FROM user WHERE accountid=:accountid; "; - $row = $conn->execQuery($sqlStr,array(':accountid' => $account_id)); - if($row) { - - } - $this->sendDataToClient(100,"getPlayerLv",$row); - } }