delete WebCheckin (#428)

This commit is contained in:
BlueSkyClouds 2022-11-09 00:16:31 +08:00 committed by GitHub
parent d90e51d6ab
commit f87ce0b68b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 55 deletions

View File

@ -1,7 +1,7 @@
/*
爱奇艺会员签到脚本
更新时间: 2022.06.18
更新时间: 2022.11.08
脚本兼容: QuantumultX, Surge4, Loon, JsBox, Node.js
电报频道: @NobyDa
问题反馈: @NobyDa_bot
@ -102,7 +102,6 @@ var $nobyda = nobyda();
dfp = cookie.match(/__dfp=(.*?)@/)[1];
await login();
await Checkin();
await WebCheckin();
for (let i = 0; i < 3; i++){
const run = await Lottery(i);
if (run) {
@ -236,59 +235,6 @@ function Checkin() {
})
}
function WebCheckin() {
return new Promise(resolve => {
const web_sign_date = {
agenttype: "1",
agentversion: "0",
appKey: "basic_pca",
appver: "0",
authCookie: P00001,
channelCode: "sign_pcw",
dfp: dfp,
scoreType: "1",
srcplatform: "1",
typeCode: "point",
userId: P00003,
// user_agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36",
verticalCode: "iQIYI"
};
const sign = k("DO58SzN6ip9nbJ4QkM8H", web_sign_date, {
split: "|",
sort: !0,
splitSecretKey: !0
});
var URL = {
url: 'https://community.iqiyi.com/openApi/score/add?' + w(web_sign_date) + "&sign=" + sign
}
$nobyda.get(URL, function(error, response, data) {
let WebCheckinMsg = '';
const Details = LogDetails ? `msg:\n${data||error}` : ''
try {
if (error) throw new Error(`接口请求出错 ‼️`);
const obj = JSON.parse(data)
if (obj.code === "A00000") {
if (obj.data[0].code === "A0000") {
var quantity = obj.data[0].score;
var continued = obj.data[0].continuousValue;
WebCheckinMsg = "网页签到: 积分+" + quantity + ", 累计签到" + continued + "天 🎉"
} else {
WebCheckinMsg = "网页签到: " + obj.data[0].message + " ⚠️"
}
} else {
WebCheckinMsg = `网页签到: ${obj.message||'未知错误'} ⚠️`
}
} catch (e) {
WebCheckinMsg = `网页签到: ${e.message || e}`;
}
pushMsg.push(WebCheckinMsg);
console.log(`爱奇艺-${WebCheckinMsg} ${Details}`);
resolve()
})
})
}
function Lottery(s) {
return new Promise(resolve => {
const URL = {