From e298e35fc2bfaf8a45225eacc021e7bb3a573d97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Mon, 28 Mar 2022 10:49:48 +0800 Subject: [PATCH] Fix --- app/Console/Commands/Dealer/ChannelSubsidySettleCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {