10395 【GM版】新渠道游戏GM版本(发放道具接口物品至少给1个; 清空背包接口清除: 物品背包 + 神兽物品背包 + 符印物品背包)
| | |
| | | $packData = array( |
| | | "queryType" => "accID", |
| | | "playerFind" => $accID, |
| | | "clearBagList" => "[2, 5]" // 暂时清理 物品背包 + 仓库 |
| | | "clearBagList" => "[2, 32, 255]" // 暂时清理 物品背包2 + 神兽背包32 + 符印背包255 |
| | | ); |
| | | $retList = \CommFunc\SendGMTToGameServers(True, "GMT_ClearBag", $packData, $appid, array($server_id)); |
| | | \Logging\LogInfo("retList:" . print_r($retList, true)); |
| | |
| | | // 验证物品 |
| | | $itemID = intval($item_id); |
| | | $itemCount = intval($item_count); |
| | | if ($itemCount <= 0) { |
| | | $itemCount = 1; // 默认1个 |
| | | } |
| | | $itemArray = array(array($itemID, $itemCount)); |
| | | $itemLen = count($itemArray); |
| | | $itemIDNameInfo = \CommFunc\getCfgKeyNameContent("item", true, $appid); |
| | | if (!array_key_exists($itemID, $itemIDNameInfo)) { |
| | | retFail("item_id_error", $itemID); |
| | | exit; |
| | | } |
| | | if ($itemCount <= 0) { |
| | | $itemCount = 1; // 默认1个 |
| | | } |
| | | |
| | | // 验证账号 |