获取本地生活商品详情,含有规格id则获取规格的金额
This commit is contained in:
parent
b158b1d3a8
commit
5566031b86
@ -253,7 +253,7 @@ class LocalStoreGoodsLogic extends Logic
|
||||
}
|
||||
|
||||
// 如果参数中含有spec_item_id参数,就把规格中的金额拿到
|
||||
if ($get['spec_item_id']) {
|
||||
if (!empty($get['spec_item_id']) && $get['spec_item_id'] > 0) {
|
||||
$data['spec_price'] = LocalStoreGoodsItem::where(['id' => $get['spec_item_id']])->field('price')->find();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user