@@ -123,7 +123,9 @@ class CommentService
->order('id desc')
->find();
if (!empty($comment)) {
- $comment->user->avatar = cdnurl($comment->user->avatar, true);
+ if(!empty($comment->user->avatar)){
+ $comment->user->avatar = cdnurl($comment->user->avatar, true);
+ }
}
return [
'total' => $total,