Kirin 3 年 前
コミット
372294e38a
1 ファイル変更2 行追加2 行削除
  1. 2 2
      app/models/store/StoreOrder.php

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

@@ -355,8 +355,8 @@ class StoreOrder extends BaseModel
                 $addressInfo['detail'] = '';
                 $addressInfo['detail'] = '';
             }
             }
 
 
-            if (!$storeId && !$test && !$free_check) return self::setErrorInfo('请选择下单门店!', true);
+            if (!$storeId && !$test && !$free_check && !$exchange_id) return self::setErrorInfo('请选择下单门店!', true);
-            if (!SystemStore::verificWhere()->find($storeId) && !$test && !$free_check) return self::setErrorInfo('请选择正确的下单门店!', true);
+            if (!SystemStore::verificWhere()->find($storeId) && !$test && !$free_check && !$exchange_id) return self::setErrorInfo('请选择正确的下单门店!', true);
             $cartIds = [];
             $cartIds = [];
             $totalNum = 0;
             $totalNum = 0;
             $gainIntegral = 0;
             $gainIntegral = 0;