shish 4 달 전
부모
커밋
37159db679
1개의 변경된 파일23개의 추가작업 그리고 4개의 파일을 삭제
  1. 23 4
      app-hd/controllers/PurchaseController.php

+ 23 - 4
app-hd/controllers/PurchaseController.php

@@ -636,16 +636,26 @@ class PurchaseController extends BaseController
                         }
                     }
 
+                    //三明易批花
+                    if ($ghsShopId == 82200) {
+                        if ($respond->actPrice < 100 || $respond->bigNum < 15) {
+                            $hasMust = array_intersect($ids, [4283478]);
+                            if (empty($hasMust)) {
+                                util::fail('没满100元且15扎,请返回选运费');
+                            }
+                        }
+                    }
+
                     if ($ghsShopId == 77703) {
                         //天天鲜花思明店,暂时关闭送货上门
-                        if($respond->sendType == 0){
+                        if ($respond->sendType == 0) {
                             //util::fail('节日暂停送货上门,请选到店自取');
                         }
                     }
 
                     if ($ghsShopId == 86726) {
                         //藏花林
-                        if($respond->transType != 4 && $respond->transType != 5){
+                        if ($respond->transType != 4 && $respond->transType != 5) {
                             util::fail('请选同城配送或到店自取');
                         }
                     }
@@ -653,9 +663,18 @@ class PurchaseController extends BaseController
                 } else {
 
                     //好运鲜花批发,选择送货上门必须选必选商品
+//                    if ($ghsShopId == 36523) {
+//                        if ($respond->transType != 4 && $respond->transType != 5) {
+//                            util::fail('请选同城配送或到店自取');
+//                        }
+//                    }
+
                     if ($ghsShopId == 36523) {
-                        if($respond->transType != 4 && $respond->transType != 5){
-                            util::fail('请选同城配送或到店自取');
+                        if ($respond->actPrice < 100 || $respond->bigNum < 15) {
+                            $hasMust = array_intersect($ids, [86841]);
+                            if (empty($hasMust)) {
+                                util::fail('没满100元且15扎,请返回选金辉');
+                            }
                         }
                     }