添加本地生活商品属性关联
This commit is contained in:
parent
686678a4a8
commit
86cd151c29
@ -239,6 +239,12 @@ class LocalStoreGoodsLogic extends Logic
|
||||
// 'goods_id' => $get['id']
|
||||
// ])->field('id, spec_id, value')->select();
|
||||
//
|
||||
foreach ($data['spec'] as &$v1) {
|
||||
foreach ($v1['item'] as $key => &$v2) {
|
||||
$v1['attr'][$key] = $v2;
|
||||
$v1['item'][$key] = $v2['value'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($data) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user