Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

头像显示问题 #751

Open
biglizi123 opened this issue Aug 26, 2024 · 1 comment
Open

头像显示问题 #751

biglizi123 opened this issue Aug 26, 2024 · 1 comment

Comments

@biglizi123
Copy link

biglizi123 commented Aug 26, 2024

为什么外面评论区不会正常显示QQ头像呢,点击Twikoo设置在里面明明能看到头像
QQ_1724698828419
Twikoo设置中能看到QQ邮箱对应QQ头像
image

@imaegoo
Copy link
Member

imaegoo commented Aug 26, 2024

Twikoo 获取 QQ 头像的原理是——

  • 在评论发送前,直接请求 https://thirdqq.qlogo.cn/g?b=sdk&nk=123456789&s=140 获取头像,其中 123456789 来自评论时留下的 QQ 数字邮箱地址
  • 在评论发送时,为了避免评论者的 QQ 号码通过头像地址被公开,Twikoo 会请求一个接口(https://aq.qq.com/cn2/get_img/get_face?img_type=3&uin=123456789),获取一个不包含 QQ 号码的头像地址
  • 在评论发出后,展示不包含 QQ 号码的头像地址

由于 https://aq.qq.com/cn2/get_img/get_face 已经停止服务,匿名头像无法获取,会显示默认头像。

暂时的解决方法是到 管理面板-配置管理-通用,将 GRAVATAR_CDN 改为默认的 weavatar.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants