From 82ce98d4252e761665adb97382fbaea9a74fc8b4 Mon Sep 17 00:00:00 2001 From: UCPr <2032385471@qq.com> Date: Wed, 29 Oct 2025 12:47:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=89=BE=E7=89=B9=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E6=95=B0=E6=8D=AE=E6=97=B6=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E9=93=BE=E6=8E=A5=E6=8C=87=E5=90=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF=20fix=20#150?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/plugin.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/plugin.js b/lib/plugin.js index 55b12e8..43975f0 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -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();