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

+ 3 - 3
app-hd/controllers/GhsController.php

@@ -179,11 +179,11 @@ class GhsController extends BaseController
         if (isset($respond['list']) && !empty($respond['list'])) {
             foreach ($respond['list'] as $key => $ghs) {
                 if (getenv('YII_ENV') == 'production') {
-                    $noAdShopId = 25159;
+                    $noAdShopId = [25159, 41379];
                 } else {
-                    $noAdShopId = 1;
+                    $noAdShopId = [1];
                 }
-                if (isset($ghs['shopId']) && $ghs['shopId'] == $noAdShopId) {
+                if (isset($ghs['shopId']) && in_array($ghs['shopId'], $noAdShopId)) {
                     $showAd = 0;
                 }
             }