diff --git a/app/Service/v3/Implementations/SeparateAccountsService.php b/app/Service/v3/Implementations/SeparateAccountsService.php index fe984a6..be4574e 100644 --- a/app/Service/v3/Implementations/SeparateAccountsService.php +++ b/app/Service/v3/Implementations/SeparateAccountsService.php @@ -173,8 +173,11 @@ class SeparateAccountsService implements SeparateAccountsServiceInterface // 当前订单(子)对应商户是否有市场经理绑定关系 $store = Store::query()->find($order['store_id']); // 商户 $mmInfo = MmInfo::query()->where(['user_id' => $store->mm_user_id])->first(); // 市场经理 + if (empty($mmInfo)) continue; $market = Market::query()->find($mmInfo->market_id); // 市场 + if (empty($market)) continue; $mpInfo = MpInfo::query()->find($market->mp_id); // 服务商 + if (empty($mpInfo)) continue; $ssdbName = 'mm_'.$mmInfo->id.'_award_'.$store->id;