获取本地生活商品详情,含有规格id则获取规格的金额
This commit is contained in:
parent
89c4238417
commit
b158b1d3a8
@ -252,6 +252,11 @@ class LocalStoreGoodsLogic extends Logic
|
||||
}
|
||||
}
|
||||
|
||||
// 如果参数中含有spec_item_id参数,就把规格中的金额拿到
|
||||
if ($get['spec_item_id']) {
|
||||
$data['spec_price'] = LocalStoreGoodsItem::where(['id' => $get['spec_item_id']])->field('price')->find();
|
||||
}
|
||||
|
||||
if ($data) {
|
||||
foreach ($data['pic'] as &$v) {
|
||||
$v['url'] = Config::get('aliyunoss.domain') . $v['url'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user