From eee82803e1618e937776c50011d414083f730cf1 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Sun, 10 Aug 2025 21:01:14 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/SupplyDemandController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {