diff --git a/webapp/controller/NPlayerInfoController.class.php b/webapp/controller/NPlayerInfoController.class.php index ffffa91..27dbb01 100644 --- a/webapp/controller/NPlayerInfoController.class.php +++ b/webapp/controller/NPlayerInfoController.class.php @@ -137,6 +137,25 @@ class NPlayerInfoController extends BaseAuthedController { $resultArr["heroArr"] = $tmpHeroArr; } //获得所有英雄结束- + //获得改名卡道具数量开始-- + if($code == 100) + { + $conn = $this->getMysql($account_id); + $tmpHeroArr = array(); + $itemID = 10106; + $sqlStr = "SELECT * FROM bag WHERE accountid=:accountid AND id=:id;"; + $row = $conn->execQuery($sqlStr,array(':accountid' => $account_id,':id'=>$itemID)); + if($row) + { + $itemNum = $row[0]["num"]; + } + else + { + $itemNum = 0; + } + $resultArr["bagItem"] = $itemNum; + } + //获得改名卡道具数量结束-- $this->sendDataToClient($code,"getPlayerInfo",$resultArr); } public function changeHIFrameHero()//修改头像 头像框 英雄