diff --git a/plugins/genshin/defSet/role/index.yaml b/plugins/genshin/defSet/role/index.yaml index 7828d6d..fe168e4 100644 --- a/plugins/genshin/defSet/role/index.yaml +++ b/plugins/genshin/defSet/role/index.yaml @@ -17,7 +17,7 @@ exquisite_chest: 1896 # 普通宝箱 common_chest: 2759 # 传送点 -way_point: 70 +way_point: 348 # 秘境 domain: 54 # 风神瞳 diff --git a/plugins/genshin/model/roleIndex.js b/plugins/genshin/model/roleIndex.js index 64fa9e6..5b59f12 100644 --- a/plugins/genshin/model/roleIndex.js +++ b/plugins/genshin/model/roleIndex.js @@ -588,13 +588,14 @@ export default class RoleIndex extends base { explor.push(tmp) } - let imgs = fs.readdirSync(`${this._path}/plugins/genshin/resources/img/role`).filter(file => file.endsWith('.png')) - let avatar = lodash.sample(imgs) + let avatar = '' if (this.e.member?.getAvatarUrl) avatar = await this.e.member.getAvatarUrl() 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'))) + return { saveId: this.e.uid, uid: this.e.uid, diff --git a/plugins/genshin/resources/html/roleExplore/roleExplore.css b/plugins/genshin/resources/html/roleExplore/roleExplore.css index 1bfaa94..a586c73 100644 --- a/plugins/genshin/resources/html/roleExplore/roleExplore.css +++ b/plugins/genshin/resources/html/roleExplore/roleExplore.css @@ -77,7 +77,7 @@ body { box-shadow: 0 5px 10px 0 rgb(0 0 0 / 15%); border-radius: 15px; position: relative; - margin-bottom: 10px; + margin-bottom: 20px; } .basicInfo_header { @@ -212,7 +212,7 @@ body { flex-wrap: wrap; justify-content: space-between; border-radius: 15px; - margin-top: 10px; + margin-top: 20px; margin-bottom: 12px; background: #fff; box-shadow: 0 5px 10px 0 rgb(0 0 0 / 15%);