优化本地生活商品规格添加
This commit is contained in:
parent
f87e302b4c
commit
ff7b96a4d4
@ -195,6 +195,10 @@ class LocalStoreGoodsLogic extends Logic
|
||||
'goods_id' => $get['id']
|
||||
])->field('id, image, spec_value_ids, spec_value_str, price, stock, note')->select();
|
||||
|
||||
foreach ($data['item'] as &$v) {
|
||||
$v['image'] = Config::get('aliyunoss.domain') . $v['image'];
|
||||
}
|
||||
|
||||
$data['spec'] = LocalStoreGoodsSpec::with('item')->where([
|
||||
'goods_id' => $get['id']
|
||||
])->field('id, name')->select();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user