mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-15 20:57:43 +00:00
fix: 艾特用户查看数据时用户头像链接指向错误 fix #150
This commit is contained in:
parent
7889186979
commit
82ce98d425
1 changed files with 4 additions and 1 deletions
|
|
@ -176,7 +176,10 @@ export class ZZZPlugin extends plugin {
|
|||
|
||||
// 获取用户头像
|
||||
let avatar = '';
|
||||
if (this.e.member?.getAvatarUrl) {
|
||||
if (this.e.group?.pickMember) {
|
||||
// 适配getUID修改了e.user_id为e.at的情况
|
||||
avatar = await this.e.group.pickMember(this.e.user_id).getAvatarUrl();
|
||||
} else if (this.e.member?.getAvatarUrl) {
|
||||
avatar = await this.e.member.getAvatarUrl();
|
||||
} else if (this.e.friend?.getAvatarUrl) {
|
||||
avatar = await this.e.friend.getAvatarUrl();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue