shish 5 年 前
コミット
68015ead8c
1 ファイル変更7 行追加0 行削除
  1. 7 0
      app-ghs/controllers/CustomController.php

+ 7 - 0
app-ghs/controllers/CustomController.php

@@ -127,6 +127,13 @@ class CustomController extends BaseController
         $customId = $get['id'] ?? 0;
         $customId = $get['id'] ?? 0;
         $info = CustomService::getCustomInfo($customId);
         $info = CustomService::getCustomInfo($customId);
         CustomClass::valid($info, $this->shopId);
         CustomClass::valid($info, $this->shopId);
+        //手动添加的客户经纬度不完善不显示地址,引导完善客户地址
+        if (isset($info['lat']) && empty($info['lat'])) {
+            $info['address'] = '';
+        }
+        if (isset($info['long']) && empty($info['long'])) {
+            $info['address'] = '';
+        }
         util::success($info);
         util::success($info);
     }
     }