修正面板变换在指定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] return uidRet[0]
} }
let uid = false 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 { try {
let user = await MysApi.initUser(e) let user = await MysApi.initUser(e)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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