mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
fix:修正#刷新ck
判断异常
This commit is contained in:
parent
85e4521e7c
commit
1cfc99e2fd
@ -333,10 +333,14 @@ export async function updCookie(e) {
|
|||||||
for (let item of Object.keys(stoken)) {
|
for (let item of Object.keys(stoken)) {
|
||||||
e.region = getServer(stoken[item].uid)
|
e.region = getServer(stoken[item].uid)
|
||||||
e.uid = stoken[item].uid
|
e.uid = stoken[item].uid
|
||||||
|
if(!e?.uid){
|
||||||
|
Bot.logger.mark(`[刷新ck][stoken读取]qq:${e?.user_id};uid:${e?.uid}`)
|
||||||
|
continue; //奇怪的东西
|
||||||
|
}
|
||||||
let cookies = `uid=${stoken[item].stuid}&stoken=${stoken[item].stoken}`
|
let cookies = `uid=${stoken[item].stuid}&stoken=${stoken[item].stoken}`
|
||||||
if (stoken[item]?.mid) cookies += `&mid=${stoken[item]?.mid}`
|
if (stoken[item]?.mid) cookies += `&mid=${stoken[item]?.mid}`
|
||||||
let data = { cookies: cookies }
|
let data = { cookies: cookies }
|
||||||
if(e.uid[0]>5) data.method='post'
|
if(e?.uid[0]>5) data.method='post'
|
||||||
let res = await user.getData("bbsGetCookie",data, false)
|
let res = await user.getData("bbsGetCookie",data, false)
|
||||||
if (!res?.data) {
|
if (!res?.data) {
|
||||||
e.reply(`uid:${stoken[item].uid},请求异常:${res.message}`)
|
e.reply(`uid:${stoken[item].uid},请求异常:${res.message}`)
|
||||||
|
Loading…
Reference in New Issue
Block a user