修改探索默认头像

Signed-off-by: 帮帮 <3102509561@qq.com>
This commit is contained in:
帮帮 2023-09-01 04:20:01 +00:00 committed by Gitee
parent 37f485a6c1
commit 93914f3a7b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -594,7 +594,7 @@ export default class RoleIndex extends base {
else if (this.e.friend?.getAvatarUrl) else if (this.e.friend?.getAvatarUrl)
avatar = await this.e.friend.getAvatarUrl() avatar = await this.e.friend.getAvatarUrl()
else 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 { return {
saveId: this.e.uid, saveId: this.e.uid,