Browse Source

Merge branch 'master' of http://git.liuniu946.com/Kirin/mccs

zxhxx 3 years ago
parent
commit
c235a67b03
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/store/StoreOrder.php

+ 1 - 1
app/models/store/StoreOrder.php

@@ -299,7 +299,7 @@ class StoreOrder extends BaseModel
                 if (!$test && (!UserAddress::be(['uid' => $uid, 'id' => $addressId, 'is_del' => 0]) || !($addressInfo = UserAddress::find($addressId))))
                     return self::setErrorInfo('地址选择有误!', true);
                 $addressInfo = UserAddress::find($addressId);
-                if (!$test) {
+                if (!$test && !($other['suit'] ?? 0)) {
                     if (empty($addressInfo['longitude']) || empty($addressInfo['latitude'])) {
                         return self::setErrorInfo('收货地址经纬度不能为空!', true);
                     }