1
This commit is contained in:
parent
0b16cae60a
commit
4b6b23f7bb
@ -51,11 +51,11 @@ class ShopController extends BaseAuthedController
|
|||||||
|
|
||||||
public function getGoodsList()
|
public function getGoodsList()
|
||||||
{
|
{
|
||||||
$shop_id = getReqVal('shop_id', 0);
|
$shopId = getReqVal('shop_id', 0);
|
||||||
if ($shop_id == 0) {
|
if ($shopId == 0) {
|
||||||
$goodsMetaList = mt\ShopGoods::all();
|
$goodsMetaList = mt\ShopGoods::all();
|
||||||
} else {
|
} else {
|
||||||
$goodsMetaList = mt\ShopGoods::getGoodsList($shop_id);
|
$goodsMetaList = mt\ShopGoods::getGoodsList($shopId);
|
||||||
}
|
}
|
||||||
|
|
||||||
$goodsMetaList = $goodsMetaList ? $goodsMetaList : array();
|
$goodsMetaList = $goodsMetaList ? $goodsMetaList : array();
|
||||||
@ -565,7 +565,7 @@ class ShopController extends BaseAuthedController
|
|||||||
$id = getReqVal('id', 0);
|
$id = getReqVal('id', 0);
|
||||||
$goods = mt\ShopGoods::get($id);
|
$goods = mt\ShopGoods::get($id);
|
||||||
$goods_id = $goods['goods_id'];
|
$goods_id = $goods['goods_id'];
|
||||||
$shop_id = $goods['shop_id'];
|
$shopId = $goods['shop_id'];
|
||||||
|
|
||||||
$meta = mt\Item::get($goods_id);
|
$meta = mt\Item::get($goods_id);
|
||||||
if ($meta['type'] != mt\Item::CHEST_BOX_TYPE) {
|
if ($meta['type'] != mt\Item::CHEST_BOX_TYPE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user