36 lines
1.2 KiB
PHP
36 lines
1.2 KiB
PHP
<?php
|
|
class NPlayerController extends BaseAuthedController {
|
|
|
|
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));
|
|
if($row) {
|
|
error_log("GunTest3======");
|
|
}
|
|
else{
|
|
error_log("GunTest4=======");
|
|
}
|
|
$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);
|
|
}
|
|
} |