消息中的评论
This commit is contained in:
@@ -3,6 +3,7 @@ namespace app\common\controller;
|
|||||||
|
|
||||||
use app\common\controller\BaseController;
|
use app\common\controller\BaseController;
|
||||||
use app\common\model\Post;
|
use app\common\model\Post;
|
||||||
|
use app\common\model\PostComment;
|
||||||
use app\common\model\PostMedia;
|
use app\common\model\PostMedia;
|
||||||
use app\common\model\User;
|
use app\common\model\User;
|
||||||
use app\common\service\OssService;
|
use app\common\service\OssService;
|
||||||
@@ -64,6 +65,9 @@ class MessageNoticeController extends BaseController
|
|||||||
$data['sender_user']['avatar_pull'] = $ossservice->generatePrivateUrl($data['sender_user']['avatar']);
|
$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;
|
return $data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user