diff --git a/app/Http/Controllers/Admin/SupplyDemandController.php b/app/Http/Controllers/Admin/SupplyDemandController.php index a414c21..2181644 100755 --- a/app/Http/Controllers/Admin/SupplyDemandController.php +++ b/app/Http/Controllers/Admin/SupplyDemandController.php @@ -269,7 +269,7 @@ class SupplyDemandController extends BaseController $interactionGrowthRate = $this->calculateGrowthRate($interactionCount, $prevInteractionCount); // 当期供需发布分页 - $list = SupplyDemand::with(['messages' => function ($query) { + $list = SupplyDemand::with(['user', 'messages' => function ($query) { $query->with('user', 'toUser')->limit(2)->orderBy('created_at', 'desc'); }])->where(function ($query) use ($type) { if ($type) {