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