10395 【GM版】新渠道游戏GM版本(发放道具接口物品至少给1个; 清空背包接口清除: 物品背包 + 神兽物品背包 + 符印物品背包)
2个文件已修改
8 ■■■■ 已修改文件
api/gmgame/clear_bag.php 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/gmgame/send_item.php 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/gmgame/clear_bag.php
@@ -62,7 +62,7 @@
$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));
api/gmgame/send_item.php
@@ -40,15 +40,15 @@
// 验证物品
$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个
}
// 验证账号