|
@@ -1249,6 +1249,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'];
|
|
|
+ // }
|
|
|
$model->goods_attribute_json = json_encode($attributeJson, JSON_UNESCAPED_UNICODE);
|
|
|
|
|
|
// $times = [];
|
|
@@ -1343,7 +1352,6 @@ class GoodsService
|
|
|
$attributeJson['icon'] = str_replace(getenv('STORAGE_DOMAIN'), '', $params['goods_theme_icon']);
|
|
|
$model->goods_attribute_json = json_encode($attributeJson);
|
|
|
}
|
|
|
-
|
|
|
if (!empty($params['address'])) {
|
|
|
if (!empty($model->goods_attribute_json) && !is_array($model->goods_attribute_json)) {
|
|
|
$attributeJson = json_decode($model->goods_attribute_json, true);
|