From f80a645ea229cb4177ce0989097c9bdf7c4128be Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Fri, 28 Nov 2025 14:15:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E4=B8=AD=E7=9A=84=E8=AF=84?= =?UTF-8?q?=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/controller/MessageNoticeController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/common/controller/MessageNoticeController.php b/app/common/controller/MessageNoticeController.php index d84b428..a0a79db 100644 --- a/app/common/controller/MessageNoticeController.php +++ b/app/common/controller/MessageNoticeController.php @@ -3,6 +3,7 @@ namespace app\common\controller; use app\common\controller\BaseController; use app\common\model\Post; +use app\common\model\PostComment; use app\common\model\PostMedia; use app\common\model\User; use app\common\service\OssService; @@ -64,6 +65,9 @@ class MessageNoticeController extends BaseController $data['sender_user']['avatar_pull'] = $ossservice->generatePrivateUrl($data['sender_user']['avatar']); } } + if (!empty($data['comment_id'])){ + $data['comment'] = PostComment::where('id', $data['comment_id'])->first(); + } return $data; } } \ No newline at end of file