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;
         $info = CustomService::getCustomInfo($customId);
         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);
     }