shish 1 tahun lalu
induk
melakukan
f662f2be83
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  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;
                 }
             }