diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 03869e39..8dab9481 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -1316,12 +1316,6 @@ class ShopController extends BaseAuthedController public function getChestItems() { - // $address = $this->_getAddress(); - // if (!$address) { - // $this->_rspErr(2, 'address is invalid'); - // return; - // } - $id = getReqVal('id', 0); $goods = mt\ShopGoods::get($id); $goods_id = $goods['goods_id']; @@ -1338,13 +1332,6 @@ class ShopController extends BaseAuthedController $this->_rspErr(2, 'goods_id is invalid'); return; } - // error_log("getChestItems start1 " . json_encode( - // array( - // 'goods_id' => $goods_id, - // 'chestType' => $chestType, - // 'items' => $itemStore, - // ) - // )); $record = array(); foreach ($itemStore as $key => $value) { foreach ($value as $k => $v) { @@ -1363,16 +1350,6 @@ class ShopController extends BaseAuthedController } $free_num = $goods['free_num']; - // $pending = $this->checkPendingBuyGoodsNormal($address, $goods_id, $shop_id, $id); - // error_log("getChestItems start " . json_encode( - // array( - // 'goods_id' => $goods_id, - // 'items' => array_keys($record), - // 'free_num' => $free_num, - // 'pending' => 0, - // ) - // )); - $this->_rspData( array( 'items' => array_keys($record),