1
This commit is contained in:
parent
1682ea5e9d
commit
3382f15c6f
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user