shish 4 years ago
parent
commit
fdb16d7f9d
1 changed files with 10 additions and 1 deletions
  1. 10 1
      biz-hd/product/classes/ProductClass.php

+ 10 - 1
biz-hd/product/classes/ProductClass.php

@@ -16,7 +16,16 @@ class ProductClass extends BaseClass
     {
     {
         //阿东开5支老是会出现5扎情况跟踪
         //阿东开5支老是会出现5扎情况跟踪
         $mainId = $shop->mainId ?? 0;
         $mainId = $shop->mainId ?? 0;
-        if (!empty($productList) && $mainId == 644) {
+        if (getenv('YII_ENV') == 'production') {
+            if ($mainId != 742 || $mainId != 50) {
+                return false;
+            }
+        } else {
+            if ($mainId != 644) {
+                return false;
+            }
+        }
+        if (!empty($productList)) {
             $adIds = [];
             $adIds = [];
             foreach ($productList as $adItem) {
             foreach ($productList as $adItem) {
                 if (isset($adItem['property']) && $adItem['property'] == 1 && $adItem['unitType'] == 0 && $adItem['num'] == 5) {
                 if (isset($adItem['property']) && $adItem['property'] == 1 && $adItem['unitType'] == 0 && $adItem['num'] == 5) {