From 93914f3a7b4e389927ec66284c17e02bab3d619d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=AE=E5=B8=AE?= <3102509561@qq.com> Date: Fri, 1 Sep 2023 04:20:01 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A2=E7=B4=A2=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=A4=B4=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 帮帮 <3102509561@qq.com> --- plugins/genshin/model/roleIndex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/genshin/model/roleIndex.js b/plugins/genshin/model/roleIndex.js index c6ddb57..5369b42 100644 --- a/plugins/genshin/model/roleIndex.js +++ b/plugins/genshin/model/roleIndex.js @@ -594,7 +594,7 @@ export default class RoleIndex extends base { else if (this.e.friend?.getAvatarUrl) avatar = await this.e.friend.getAvatarUrl() else - avatar = lodash.sample(fs.readdirSync(`${this._path}/plugins/genshin/resources/img/role`).filter(file => file.endsWith('.png'))) + avatar = resIndex.role.game_head_icon return { saveId: this.e.uid,