``` if ($comment->user_id !== '0') {//这里通过用户ID来判断 echo '<span class="c-author"><a target="_blank" href="' . get_author_posts_url($comment->user_id) . '">' . get_comment_author() . '</a></span>'; } else { echo '<span class="c-author">' . get_comment_author_link() . '</span>'; } ```