From f1f00278c43467fa4083e373d992f8f0c02cb458 Mon Sep 17 00:00:00 2001 From: zhuzhiqing Date: Mon, 24 Jun 2024 10:30:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=A8=E9=B9=B0=E4=BA=91?= =?UTF-8?q?=E6=B8=B8=E6=88=8F=E7=AD=BE=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qiandao/nornal.js | 42 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/qiandao/nornal.js b/qiandao/nornal.js index a14e87f..99aa0fb 100644 --- a/qiandao/nornal.js +++ b/qiandao/nornal.js @@ -106,6 +106,43 @@ class UserInfo { console.log(`壳牌签到 签到成功,${result.Msg}`) } } + + //云游戏签到 + async doMovingcloudgame() + { + let url = `https://xcx.cdshell.com/api/userSign/userSign` + let urlObject = { + url: url, + headers: { + "Host":"www.movingcloudgame.com", + "Connection":"keep-alive", + "Content-Length":"0", + "sec-ch-ua":"\"Not;A=Brand\";v=\"99\",\"Chromium\";v=\"106\"", + "Accept":"application/json", + "X-Euclase-Channel":"lobby", + "sec-ch-ua-mobile":"?0", + "Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiIwMTkwMWYyMzUxNWEwM2U5MzE1ZDU1NmEiLCJpYXQiOjE3MTg1MDkzMjYsInN1YiI6ImF1dGhvcml6YXRpb24ifQ.sARhz0AbfvXcooqoBMeupIBBa-zrYFXEYPfRd9Pdt4I", + "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) @cloudgaming/singlepackgame/3.2.0 Chrome/106.0.5249.199 Electron/21.4.2 Safari/537.36 @cloudgaming/singlepackgame/3.2.0", + "sec-ch-ua-platform":"\"Windows\"", + "Sec-Fetch-Site":"cross-site", + "Sec-Fetch-Mode":"cors", + "Sec-Fetch-Dest":"empty", + "Accept-Encoding":"gzip, deflate, br", + "Accept-Language":"zh-CN" + } + + } + + await httpRequest('post', urlObject) + let result = httpResult; + if (!result) return + //console.log(result) + if (!result.checkedIn) { + console.log(`木鹰云游戏 签到失败:${result.date}`) + } else { + console.log(`木鹰云游戏 签到成功,${result.date}`) + } + } } !(async () => { @@ -115,8 +152,9 @@ class UserInfo { if (!(await checkEnv())) return; for (let user of userList) { - await user.doSMGCSign(); - await user.doQPSign(); + // await user.doSMGCSign(); + // await user.doQPSign(); + await user.doMovingcloudgame(); await $.wait(200); } }