shizhongqi 4 jaren geleden
bovenliggende
commit
4305822b5a
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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]);
+            $customers = CustomClass::getAllByCondition(['ownShopId' => $defaultShopId]);
             foreach($customers as $customer) {
                 $exist = CustomClass::exists(['ownShopId'=> $shopId, 'shopId'=>$customer['shopId']]);
                 if (!$exist) {