shizhongqi 4 лет назад
Родитель
Сommit
0ecda716bf
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      console/controllers/CustomController.php

+ 1 - 1
console/controllers/CustomController.php

@@ -282,7 +282,7 @@ class CustomController extends Controller
             $shopId = $shopIdArr[0];
             $defaultShopId = $shopIdArr[1];
 
-            $customers = CustomClass::getByCondition(['ownShopId' => $defaultShopId], true);
+            $customers = CustomClass::getByCondition(['ownShopId' => $defaultShopId]);
             foreach($customers as $customer) {
                 $exist = CustomClass::exists(['ownShopId'=> $shopId, 'shopId'=>$customer->shopId]);
                 if (!$exist) {