Browse Source

完善功能

gorden 8 months ago
parent
commit
38d92ac8ba
1 changed files with 9 additions and 1 deletions
  1. 9 1
      app/admin/service/goods/GoodsService.php

+ 9 - 1
app/admin/service/goods/GoodsService.php

@@ -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);