diff --git a/app/Console/Commands/Dealer/ChannelSubsidySettleCommand.php b/app/Console/Commands/Dealer/ChannelSubsidySettleCommand.php index 0eac0b73..607afe68 100644 --- a/app/Console/Commands/Dealer/ChannelSubsidySettleCommand.php +++ b/app/Console/Commands/Dealer/ChannelSubsidySettleCommand.php @@ -44,7 +44,7 @@ class ChannelSubsidySettleCommand extends Command $page = 0; DealerEarning::channelSubsidy()->withoutPayer()->onlyPending()->chunkById(200, function ($earnings) use (&$page) { - $earnings->load('dealer.userInfo'); + $earnings->load(['earningable', 'user']); foreach ($earnings as $earning) { try {