1
This commit is contained in:
parent
9193dd9f1a
commit
8dec95b4cf
@ -6,17 +6,6 @@ class NPlayerInfo(object):
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.apis = [
|
self.apis = [
|
||||||
{
|
|
||||||
'desc': 'sendGMFToClient',
|
|
||||||
'group': 'NPlayerInfo',
|
|
||||||
'url': 'webapp/index.php?c=NPlayerInfo&a=sendGMFToClient',
|
|
||||||
'params': [
|
|
||||||
_common.ReqHead(),
|
|
||||||
],
|
|
||||||
'response': [
|
|
||||||
_common.RspHead(),
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
'desc': 'addGiveMeFive',
|
'desc': 'addGiveMeFive',
|
||||||
'group': 'NPlayerInfo',
|
'group': 'NPlayerInfo',
|
||||||
@ -61,26 +50,4 @@ class NPlayerInfo(object):
|
|||||||
_common.RspHead(),
|
_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(),
|
|
||||||
]
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
|
@ -16,11 +16,7 @@ class NPlayerInfoController extends BaseAuthedController {
|
|||||||
return $giveMeFiveCnt;
|
return $giveMeFiveCnt;
|
||||||
|
|
||||||
}
|
}
|
||||||
public function sendGMFToClient()
|
|
||||||
{
|
|
||||||
$tmpCnt = $this->getGiveMeFive();
|
|
||||||
$this->sendDataToClient(100,"getGiveMeFive",$tmpCnt);
|
|
||||||
}
|
|
||||||
public function addGiveMeFive()//玩家被点赞一次
|
public function addGiveMeFive()//玩家被点赞一次
|
||||||
{
|
{
|
||||||
//error_log("玩家被点赞===".$this->getAccountId());
|
//error_log("玩家被点赞===".$this->getAccountId());
|
||||||
@ -229,32 +225,5 @@ class NPlayerInfoController extends BaseAuthedController {
|
|||||||
// $sqlStr = "SELECT * FROM user WHERE accountid=:accountid; ";
|
// $sqlStr = "SELECT * FROM user WHERE accountid=:accountid; ";
|
||||||
// $row = $conn->execQuery($sqlStr,array(':accountid' => $account_id));
|
// $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);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user