消息中的评论

This commit is contained in:
2025-11-28 14:15:49 +08:00
parent f4f9994421
commit f80a645ea2
@@ -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;
}
}