|
|
@@ -240,6 +240,19 @@ class PurchaseController extends BaseController
|
|
|
$post['product'] = $productList;
|
|
|
|
|
|
$sendType = $post['sendType'] ?? 0;
|
|
|
+ if ($sendType == 0) {
|
|
|
+ //杭州斗南不支持免费送货
|
|
|
+ if (getenv('YII_ENV') == 'production') {
|
|
|
+ if ($ghsShopId == 4608) {
|
|
|
+ util::fail('请选择到店自取或发跑腿');
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if ($ghsShopId == 36523) {
|
|
|
+ util::fail('请选择到店自取或发跑腿');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$sendCost = 0;
|
|
|
|
|
|
if ($sendType == dict::getDict('sendType', 'thirdSend')) {
|