七圣查询改为不使用device_fp,请求device_fp改为仅使用自己的ck,模板增加未绑ck提示
This commit is contained in:
parent
b66e191540
commit
b7ecc6058e
|
@ -10,21 +10,8 @@ export default class Deck extends base {
|
||||||
this.headIndexStyle = `<style> .head_box { background: url(${this.screenData.pluResPath}img/roleIndex/namecard/${lodash.random(1, 8)}.png) #f5f5f5; background-position-x: 30px; background-repeat: no-repeat; border-radius: 15px; font-family: tttgbnumber; padding: 10px 20px; position: relative; background-size: auto 101%; }</style>`
|
this.headIndexStyle = `<style> .head_box { background: url(${this.screenData.pluResPath}img/roleIndex/namecard/${lodash.random(1, 8)}.png) #f5f5f5; background-position-x: 30px; background-repeat: no-repeat; border-radius: 15px; font-family: tttgbnumber; padding: 10px 20px; position: relative; background-size: auto 101%; }</style>`
|
||||||
}
|
}
|
||||||
|
|
||||||
async getdata(api) {
|
|
||||||
let seed_id = lodash.sample('abcdefghijklmnopqrstuvwxyz0123456789', 16).replace(/,/g, '')
|
|
||||||
let device_fp = await MysInfo.get(this.e, 'getFp', {
|
|
||||||
seed_id
|
|
||||||
})
|
|
||||||
let res = await MysInfo.get(this.e, api, {
|
|
||||||
headers: {
|
|
||||||
'x-rpc-device_fp': device_fp?.data?.device_fp
|
|
||||||
}
|
|
||||||
})
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
|
|
||||||
async getIndex(id, list = false) {
|
async getIndex(id, list = false) {
|
||||||
let res = await this.getdata('deckList')
|
let res = await MysInfo.get(this.e, 'deckList')
|
||||||
if (res?.retcode !== 0) return false
|
if (res?.retcode !== 0) return false
|
||||||
|
|
||||||
let Data
|
let Data
|
||||||
|
@ -58,7 +45,7 @@ export default class Deck extends base {
|
||||||
let res = {}
|
let res = {}
|
||||||
for (let api of ['basicInfo', 'avatar_cardList', 'action_cardList']) {
|
for (let api of ['basicInfo', 'avatar_cardList', 'action_cardList']) {
|
||||||
if ((id == 2 && api == 'avatar_cardList') || (id == 1 && api == 'action_cardList')) continue
|
if ((id == 2 && api == 'avatar_cardList') || (id == 1 && api == 'action_cardList')) continue
|
||||||
res[api] = (await this.getdata(api)).data
|
res[api] = (await MysInfo.get(this.e, api)).data
|
||||||
}
|
}
|
||||||
this.model = 'deckCard'
|
this.model = 'deckCard'
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ export default class MysInfo {
|
||||||
}
|
}
|
||||||
// ck对应MysUser对象
|
// ck对应MysUser对象
|
||||||
this.ckUser = null
|
this.ckUser = null
|
||||||
this.auth = ['dailyNote', 'bbs_sign_info', 'bbs_sign_home', 'bbs_sign', 'ys_ledger', 'compute', 'avatarSkill', 'detail', 'blueprint', 'UserGame', 'deckList', 'avatar_cardList', 'action_cardList']
|
this.auth = ['dailyNote', 'bbs_sign_info', 'bbs_sign_home', 'bbs_sign', 'ys_ledger', 'compute', 'avatarSkill', 'detail', 'blueprint', 'UserGame', 'getFp', 'deckList', 'avatar_cardList', 'action_cardList']
|
||||||
}
|
}
|
||||||
|
|
||||||
static async init(e, api) {
|
static async init(e, api) {
|
||||||
|
|
|
@ -43,6 +43,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{{if !avatar_cardList && !action_cardList}}
|
||||||
|
<div class="logo">请绑定cookie后查看更多信息</div>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div style="height: 5px;"></div>
|
<div style="height: 5px;"></div>
|
||||||
|
|
Loading…
Reference in New Issue