|
@@ -1452,6 +1452,9 @@ class GoodsService
|
|
|
}
|
|
|
$data = [];
|
|
|
foreach ($params['goods_content_list'] as $item) {
|
|
|
+ if(!in_array($item['goods_id'],$params['join_component_goods_id'])){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
$goods = Goods::where('goods_id', $params['goods_id'])->first();
|
|
|
if (!$goods) {
|
|
|
continue;
|
|
@@ -1646,15 +1649,15 @@ class GoodsService
|
|
|
if (!empty($params['appointment_label'])) {
|
|
|
$attributeJson['label'] = $params['appointment_label'];
|
|
|
}
|
|
|
- if (!empty($params['address'])) {
|
|
|
- $attributeJson['address'] = $params['address'];
|
|
|
- }
|
|
|
- if (!empty($params['position'])){
|
|
|
- $attributeJson['position'] = $params['position'];
|
|
|
- }
|
|
|
- if (isset($params['goods_service_premises'])){
|
|
|
- $attributeJson['service_premises_id'] = $params['goods_service_premises'];
|
|
|
- }
|
|
|
+ // if (!empty($params['address'])) {
|
|
|
+ // $attributeJson['address'] = $params['address'];
|
|
|
+ // }
|
|
|
+ // if (!empty($params['position'])){
|
|
|
+ // $attributeJson['position'] = $params['position'];
|
|
|
+ // }
|
|
|
+ // if (isset($params['goods_service_premises'])){
|
|
|
+ // $attributeJson['service_premises_id'] = $params['goods_service_premises'];
|
|
|
+ // }
|
|
|
if (isset($params['min_count'])){
|
|
|
$attributeJson['min-count'] = $params['min_count'];
|
|
|
}else{
|