mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 19:10:53 +08:00
补充cookies绑定逻辑
This commit is contained in:
parent
9d00ac32b0
commit
bda5cfc2d3
@ -74,7 +74,7 @@ export async function getBasicVoide(e) {
|
||||
return true
|
||||
}
|
||||
export async function roleInfo(e) {
|
||||
let msg = e.msg.replace(/#|#|信息|图鉴|命座|天赋|原牌|七圣|动态|幻影/g, "");
|
||||
let msg = e.msg.replace(/#|#|信息|图鉴|命座|天赋|原牌|七圣|动态|幻影|七圣召唤/g, "");
|
||||
let Botcfg, id, type = 'juese_tujian';
|
||||
if (isV3) {
|
||||
Botcfg = (await import(`file://${_path}/plugins/genshin/model/gsCfg.js`)).default;
|
||||
|
@ -235,7 +235,6 @@ export default class user {
|
||||
return res;
|
||||
}
|
||||
async bbsSeachSign() {
|
||||
let message = '';
|
||||
let res = await this.getData("bbsisSign", {
|
||||
name: "原神"
|
||||
})
|
||||
@ -627,7 +626,7 @@ export default class user {
|
||||
return validate
|
||||
} else if (res?.data?.result !== "slide") {
|
||||
await redis.set(`xiaoyao:sign`, 1, { //写入缓存 过不了了
|
||||
EX: 60 * 6 //等6分钟后再给用指令 避免ddos
|
||||
EX: 60 * 6 //等6分钟后再给用指令
|
||||
});
|
||||
}
|
||||
return ""
|
||||
@ -763,9 +762,11 @@ export default class user {
|
||||
// this.e.cookie =
|
||||
// `ltoken_v2=${this.e.sk?.get('ltoken')||ltoken};cookie_token_v2=${data.data.cookie_token}; account_mid_v2=${this.e.sk.get('mid')};ltmid_v2=${this.e.sk.get('mid')}`
|
||||
// }
|
||||
|
||||
} else {
|
||||
this.e.cookie = this.e.original_msg
|
||||
this.e.cookie = this.e.original_msg //发送的为cookies
|
||||
this.cookies=`stuid=${this.e.stuid};stoken=${data?.data?.list[0].token};ltoken=${data?.data?.list[1].token}`
|
||||
res=await this.getData('getLtoken',{cookies:this.cookies},false)
|
||||
v2Sk=await this.getData('getByStokenV2',{headers:{Cookie:this.cookies}},false)
|
||||
}
|
||||
res = await this.getData("userGameInfo", this.ForumData[1], false)
|
||||
if (res?.retcode != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user