Typecho评论调用QQ头像以及随机头像api搭建

方法在主题下的comments.php文件中,查找关键字gravatar,将<?php $comments->gravatar('32', ''); ?> 替换为<?php $number=$comments->mail; if(preg_match('|^[1-9]\d{4,11}@qq\.com$|i',$number)){ echo '<img src=&