This commit is contained in:
aozhiwei 2021-11-18 19:54:56 +08:00
parent 9193dd9f1a
commit 8dec95b4cf
2 changed files with 1 additions and 65 deletions

View File

@ -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(),
]
},
]

View File

@ -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);
}
}