shish 3 years ago
parent
commit
8e74535c40
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app-hd/controllers/PurchaseController.php

+ 1 - 1
app-hd/controllers/PurchaseController.php

@@ -377,7 +377,7 @@ class PurchaseController extends BaseController
         $shopLong = isset($shop->long) ? $shop->long : '';
         $shopLong = isset($shop->long) ? $shop->long : '';
 
 
         if (empty($shopLat) || empty($shopLong)) {
         if (empty($shopLat) || empty($shopLong)) {
-            util::fail('请完善门店地址');
+            util::success(['distance' => 0, 'showDistance' => 0, 'fee' => 0]);
         }
         }
 
 
         $ghsId = $get['ghsId'] ?? 0;
         $ghsId = $get['ghsId'] ?? 0;