This commit is contained in:
aozhiwei 2021-07-01 17:17:17 +08:00
parent 653ad40538
commit 5035566f3f

View File

@ -137,6 +137,25 @@ class NPlayerInfoController extends BaseAuthedController {
$resultArr["heroArr"] = $tmpHeroArr; $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); $this->sendDataToClient($code,"getPlayerInfo",$resultArr);
} }
public function changeHIFrameHero()//修改头像 头像框 英雄 public function changeHIFrameHero()//修改头像 头像框 英雄