[NplayerInfo]
This commit is contained in:
parent
e52cdaed4a
commit
4fe0431846
@ -201,18 +201,29 @@ class NPlayerInfoController extends BaseAuthedController {
|
|||||||
$nickName = $_REQUEST['nickName'];
|
$nickName = $_REQUEST['nickName'];
|
||||||
$conn = $this->getMysql($account_id);
|
$conn = $this->getMysql($account_id);
|
||||||
$code = 100;
|
$code = 100;
|
||||||
|
$itemID = 10106;
|
||||||
|
$itemNum = 1;
|
||||||
|
|
||||||
phpcommon\SqlHelper::update
|
$itemArr = array();
|
||||||
($this->getSelfMysql(),
|
$deleteItem = array("item_id"=>$itemID,"item_num"=>$itemNum);
|
||||||
'user',
|
array_push($itemArr,$deleteItem);
|
||||||
array(
|
$code = $this->deleteItem($deleteItem);
|
||||||
'accountid' => $this->getAccountId()
|
if($code == 100)
|
||||||
),
|
{
|
||||||
array(
|
$this->decItem($itemArr);
|
||||||
'user_name' => $nickName
|
|
||||||
)
|
error_log("改名测试======".$code);
|
||||||
);
|
phpcommon\SqlHelper::update
|
||||||
|
($this->getSelfMysql(),
|
||||||
|
'user',
|
||||||
|
array(
|
||||||
|
'accountid' => $this->getAccountId()
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'user_name' => $nickName
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
$this->sendDataToClient($code,"changeNickName",$nickName);
|
$this->sendDataToClient($code,"changeNickName",$nickName);
|
||||||
|
|
||||||
// $sqlStr = "SELECT * FROM user WHERE accountid=:accountid; ";
|
// $sqlStr = "SELECT * FROM user WHERE accountid=:accountid; ";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user