...
This commit is contained in:
parent
1a50c0af8a
commit
66150f7047
@ -60,6 +60,7 @@ class Shop(object):
|
||||
'url': 'webapp/index.php?c=Shop&a=getGoodsList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['shop_id', 0, '商店id 0: 所有商店(较慢)'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
|
@ -113,7 +113,13 @@ class ShopController extends BaseAuthedController
|
||||
|
||||
public function getGoodsList()
|
||||
{
|
||||
$goodsList = mt\ShopGoods::all();
|
||||
$shop_id = getReqVal('shop_id', 0);
|
||||
if ($shop_id == 0) {
|
||||
$goodsList = mt\ShopGoods::all();
|
||||
} else {
|
||||
$goodsList = mt\ShopGoods::getGoodsList($shop_id);
|
||||
}
|
||||
|
||||
$goodsList = $goodsList ? $goodsList : array();
|
||||
$buyRecordHash = ShopBuyRecord::allToHash();
|
||||
|
||||
@ -757,7 +763,7 @@ class ShopController extends BaseAuthedController
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
public function openBlindBox()
|
||||
{
|
||||
$account = $this->_getAccountId();
|
||||
|
Loading…
x
Reference in New Issue
Block a user