Gorden 9 月之前
父節點
當前提交
73381b0ebe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/admin/service/goods/GoodsService.php

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

@@ -1534,7 +1534,7 @@ class GoodsService
                 if (!empty($params['appointment_label'])) {
                     $attributeJson['label'] = $params['appointment_label'];
                 }
-                if (!empty($params['address'])) {
+                if (!empty($params['address']) && !empty($params['position'])) {
                     $attributeJson['address'] = $params['address'];
                     $attributeJson['position'] = $params['position'];
                 }