获取本地生活商品详情,含有规格id则获取规格的金额

This commit is contained in:
wangxiaowei 2024-09-14 15:35:56 +08:00
parent 981a6c4a21
commit 36825b23d0

@ -244,8 +244,7 @@ class LocalStoreGoodsLogic extends Logic
if ($data['is_multiple_spec'] == 1) {
$data['item'] = LocalStoreGoodsItem::where([
'goods_id' => $get['id']
// ])->field('id, image, spec_value_ids, spec_value_str, price, stock, note')->select();
])->field('id, image, spec_value_str, price, note')->select();
])->field('id, image, spec_value_str, price, stock, note')->select();
foreach ($data['item'] as &$v) {
$v['image'] = Config::get('aliyunoss.domain') . $v['image'];