|
|
@@ -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) {
|