shish 1 год назад
Родитель
Сommit
0e6d00bddf
1 измененных файлов с 15 добавлено и 4 удалено
  1. 15 4
      app-hd/controllers/PurchaseController.php

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

@@ -333,10 +333,21 @@ class PurchaseController extends BaseController
             print_r($productList);
             die;
             if (getenv('YII_ENV') == 'production') {
-                $smallSet = [];
-                $bigSet = [];
-                $getIds = array_column($productList, 'productId');
-                $intersection = array_intersect($array1, $array2);
+                if($ghsShopInfo->mainId == 41121){
+                    $smallSet = [1903841,1903855,1903859,1903860,1903864];
+                    $bigSet = [1903693,1903712,1903789,1903796,1903816];
+                    $getIds = array_column($productList, 'productId');
+                    $bigIntersection = array_intersect($getIds, $bigSet);
+                    $smallIntersection = array_intersect($getIds, $smallSet);
+                    if(count($getIds)==5){
+                        if(count($bigIntersection)==5){
+
+                        }
+                        if(count($smallIntersection)==5){
+
+                        }
+                    }
+                }
             }
 
             $post['product'] = $productList;