添加本地生活商品属性关联
This commit is contained in:
parent
86cd151c29
commit
a7f45f4ed3
@ -240,6 +240,7 @@ 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['item'][$key] = $v2['value'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user