This commit is contained in:
parent
940ede4c07
commit
51b2f8ffde
|
@ -17,7 +17,7 @@ exquisite_chest: 1896
|
|||
# 普通宝箱
|
||||
common_chest: 2759
|
||||
# 传送点
|
||||
way_point: 70
|
||||
way_point: 348
|
||||
# 秘境
|
||||
domain: 54
|
||||
# 风神瞳
|
||||
|
|
|
@ -588,12 +588,13 @@ 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,
|
||||
|
|
|
@ -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%);
|
||||
|
|
Loading…
Reference in New Issue