default) && $currentShop->default == 1) { $sjId = $currentShop->sjId ?? 0; $shopList = ShopClass::getAllByCondition(['sjId' => $sjId], null, '*', null, true); foreach ($shopList as $shop) { $shopId = $shop->id ?? 0; if ($shopId == $currentShop->id) { continue; } CpClass::importPtCp($ptCp, $shop); } } return $shopCp; } }