' => 0], null, '*', null, true); if (empty($custom)) { echo '空'; return false; } foreach ($custom as $item) { $shopId = $item->shopId ?? 0; $shop = ShopClass::getById($shopId, true); if ($shop->mainId != $item->mainId) { echo "客户id:{$item->id} {$shop->mainId} {$item->mainId}\n"; } } } }