shish 4 месяцев назад
Родитель
Сommit
cdeb407c47
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      console/controllers/GhsOrderController.php

+ 2 - 2
console/controllers/GhsOrderController.php

@@ -25,7 +25,7 @@ class GhsOrderController extends Controller
             'payTime' => ['between', [$minPayTime, $maxPayTime]],
         ];
 
-        $ghsShops = ShopClass::getAllByCondition(['ptStyle' => 2, 'live' => 1], null, 'mainId');
+        $ghsShops = ShopClass::getAllByCondition(['mainId' => 50, 'ptStyle' => 2, 'live' => 1], null, 'mainId');
         if (!empty($ghsShops)) {
             $mainIds = array_unique(array_filter(array_column($ghsShops, 'mainId')));
             if (!empty($mainIds)) {
@@ -65,7 +65,7 @@ class GhsOrderController extends Controller
             'payTime<' => $maxPayTime,
         ];
 
-        $ghsShops = ShopClass::getAllByCondition(['ptStyle' => 2, 'live' => 1], null, 'mainId');
+        $ghsShops = ShopClass::getAllByCondition(['mainId' => 50, 'ptStyle' => 2, 'live' => 1], null, 'mainId');
         if (!empty($ghsShops)) {
             $mainIds = array_unique(array_filter(array_column($ghsShops, 'mainId')));
             if (!empty($mainIds)) {