修正面板变换在指定uid更换圣遗物时的uid错误

This commit is contained in:
Kokomi 2023-10-14 23:02:20 +08:00
parent 3aed243ba4
commit 0f97193390
7 changed files with 35 additions and 35 deletions

View File

@ -19,12 +19,6 @@ const _getTargetUid = async function (e) {
return uidRet[0]
}
let uid = false
let getUid = async function (qq) {
uid = await redis.get(`genshin:id-uid:${qq}`) || await redis.get(`Yz:genshin:mys:qq-uid:${qq}`)
if (uid && uidReg.test(uid)) {
return uid
}
}
try {
let user = await MysApi.initUser(e)

View File

@ -31,6 +31,8 @@ let ProfileDetail = {
}
e.game = pc.game
e.isSr = e.game === 'sr'
e.uid = ''
e.msg = '#喵喵面板变换'
e.uid = pc.uid || await getTargetUid(e)
profileChange = ProfileChange.getProfile(e.uid, pc.char, pc.change, pc.game)
if (profileChange && profileChange.char) {

View File

@ -11,7 +11,8 @@
width: 790px;
}
.artis .item {
height: 205px;
height: 190px;
margin-bottom: 10px;
overflow: hidden;
}
.artis .item .avatar {
@ -24,9 +25,10 @@
overflow: hidden;
z-index: 3;
}
.artis .item .arti-icon img {
width: 52px;
height: 52px;
.artis .item.arti .arti-icon {
right: 10px;
width: 75px;
height: 75px;
}
.artis .item .avatar img {
max-width: 100%;

View File

@ -15,7 +15,8 @@
}
.artis .item {
height: 205px;
height: 190px;
margin-bottom: 10px;
overflow: hidden;
}
@ -30,9 +31,10 @@
z-index: 3;
}
.artis .item .arti-icon img {
width: 52px;
height: 52px;
.artis .item.arti .arti-icon {
right: 10px;
width: 75px;
height: 75px;
}
.artis .item .avatar img {

View File

@ -646,13 +646,13 @@ body {
background-position: 0 -80px;
}
.artis .weapon {
height: 86px;
height: 96px;
overflow: visible;
margin-bottom: 10px;
}
.artis .weapon .img {
width: 96px;
height: 96px;
width: 106px;
height: 106px;
top: -10px;
right: -10px;
position: absolute;
@ -735,8 +735,7 @@ body {
font-weight: bold;
}
.artis .arti-stat {
height: 94px;
padding-top: 5px;
height: 84px;
}
.arti-class-title {
height: 25px;
@ -864,19 +863,20 @@ body {
}
.artis .item.arti .arti-icon {
left: auto;
right: -5px;
right: 0;
top: -12px;
width: 85px;
height: 85px;
width: 90px;
height: 90px;
}
.artis .item.arti .arti-icon .img {
width: 100%;
height: 100%;
margin: 0;
-webkit-mask: linear-gradient(45deg, #0000 0, #0005 30%, #000 50%);
}
.artis .item.arti .arti-icon span {
bottom: 20px;
right: 15px;
top: 50px;
right: 8px;
background: rgba(0, 0, 0, 0.8);
}
.artis ul.detail {

View File

@ -187,7 +187,7 @@
<div><span>攻击</span> +{{weapon.attrs.atkBase}}</div>
{{each weapon.attrs v k}} {{if k!== 'atkBase' }}
{{ set titleMap = {atkPct:'攻击',mastery:'精通',dmg:'伤害',hpPct:'生命',defPct:'防御',
cpct:'暴击', cdmg:'爆伤', phy:'物伤'} }}
cpct:'暴击', cdmg:'爆伤', phy:'物伤', recharge:'充能', heal:'治疗', shield:'护盾'} }}
<div><span>{{ titleMap[k] }}</span> +{{v}}</div>
{{/if}} {{/each}}
</div>

View File

@ -798,14 +798,14 @@ body {
.artis .weapon {
height: 86px;
height: 96px;
overflow: visible;
margin-bottom: 10px;
.img {
width: 96px;
height: 96px;
width: 106px;
height: 106px;
top: -10px;
right: -10px;
position: absolute;
@ -904,8 +904,7 @@ body {
}
.artis .arti-stat {
height: 94px;
padding-top: 5px;
height: 84px;
}
.arti-class-title {
@ -1079,20 +1078,21 @@ body {
.arti-icon {
left: auto;
right: -5px;
right: 0;
top: -12px;
width: 85px;
height: 85px;
width: 90px;
height: 90px;
.img {
width: 100%;
height: 100%;
margin: 0;
-webkit-mask: linear-gradient(45deg, #0000 0, #0005 30%, #000 50%);
}
span {
bottom: 20px;
right: 15px;
top: 50px;
right: 8px;
background: rgba(0, 0, 0, .8);
}
}