...
This commit is contained in:
parent
cc51bdb5d3
commit
9eef7fbd83
@ -694,7 +694,7 @@ class ShopController extends BaseAuthedController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buyGoodsDSDiamond()
|
public function buyGoodsDS()
|
||||||
{
|
{
|
||||||
$idx = getReqVal('idx', 0);
|
$idx = getReqVal('idx', 0);
|
||||||
$grid = getReqVal('grid', 0);
|
$grid = getReqVal('grid', 0);
|
||||||
@ -790,7 +790,7 @@ class ShopController extends BaseAuthedController
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buyGoodsDS()
|
private function buyGoodsDSOld()
|
||||||
{
|
{
|
||||||
$account = $this->_getAccountId();
|
$account = $this->_getAccountId();
|
||||||
$address = $this->_getAddress();
|
$address = $this->_getAddress();
|
||||||
@ -894,7 +894,7 @@ class ShopController extends BaseAuthedController
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function openBlindBox()
|
private function openBlindBox()
|
||||||
{
|
{
|
||||||
$account = $this->_getAccountId();
|
$account = $this->_getAccountId();
|
||||||
|
|
||||||
@ -952,11 +952,11 @@ class ShopController extends BaseAuthedController
|
|||||||
|
|
||||||
public function getChestItems()
|
public function getChestItems()
|
||||||
{
|
{
|
||||||
$address = $this->_getAddress();
|
// $address = $this->_getAddress();
|
||||||
if (!$address) {
|
// if (!$address) {
|
||||||
$this->_rspErr(2, 'address is invalid');
|
// $this->_rspErr(2, 'address is invalid');
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
$id = getReqVal('id', 0);
|
$id = getReqVal('id', 0);
|
||||||
$goods = mt\ShopGoods::get($id);
|
$goods = mt\ShopGoods::get($id);
|
||||||
@ -999,13 +999,13 @@ class ShopController extends BaseAuthedController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$free_num = $goods['free_num'];
|
$free_num = $goods['free_num'];
|
||||||
$pending = $this->checkPendingBuyGoodsNormal($address, $goods_id, $shop_id, $id);
|
// $pending = $this->checkPendingBuyGoodsNormal($address, $goods_id, $shop_id, $id);
|
||||||
error_log("getChestItems start " . json_encode(
|
error_log("getChestItems start " . json_encode(
|
||||||
array(
|
array(
|
||||||
'goods_id' => $goods_id,
|
'goods_id' => $goods_id,
|
||||||
'items' => array_keys($record),
|
'items' => array_keys($record),
|
||||||
'free_num' => $free_num,
|
'free_num' => $free_num,
|
||||||
'pending' => $pending,
|
'pending' => 0,
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
||||||
@ -1013,12 +1013,12 @@ class ShopController extends BaseAuthedController
|
|||||||
array(
|
array(
|
||||||
'items' => array_keys($record),
|
'items' => array_keys($record),
|
||||||
'free_num' => $free_num,
|
'free_num' => $free_num,
|
||||||
'pending' => $pending,
|
'pending' => 0,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getMyBlindBoxs()
|
private function getMyBlindBoxs()
|
||||||
{
|
{
|
||||||
|
|
||||||
$itemDb = Bag::getAllByType(mt\Item::CHEST_BOX_TYPE);
|
$itemDb = Bag::getAllByType(mt\Item::CHEST_BOX_TYPE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user