Files
qinglong/脚本库/APP版/抓包/Qoo/2021-10-10_Qoo_d538c7cb.js
2026-05-24 03:53:42 +00:00

37 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// # Source: https://github.com/Wenmoux/checkbox/blob/master/scripts/Qoo.js
// # Raw: https://raw.githubusercontent.com/Wenmoux/checkbox/master/scripts/Qoo.js
// # Repo: Wenmoux/checkbox
// # Path: scripts/Qoo.js
// # UploadedAt: 2021-10-10T06:20:09Z
// # SHA256: d538c7cb1f22866224e5a1db8be4d8450e58f12b1a583c705a319ea2e59bef4a
// # Category: APP版/抓包
// # Evidence: cookie/token/authorization/header
//
//Qoo app 个人中心转蛋 没啥用
const axios = require("axios");
function task() {
return new Promise(async (resolve) => {
try {
let token = config.Qoo.token;
await axios.post(`https://api.qoo-app.com/v9/usercard/setcardshare?token=${token}`)
let url = `https://api.qoo-app.com/v9/usercard/signincard?token=${token}`;
let res = await axios.post(url);
if (res.data.code == 200) {
msg = `签到成功✅ 当前共${res.data.data.point}转蛋券`;
if(res.data.data.ret==1) console.log(`签到成功!今日获得${res.data.data.add}`)
} else {
msg = JSON.stringify(res.data);
}
console.log(msg);
} catch (err) {
msg = "签到接口请求出错";
console.log(err);
}
resolve("【Qoo】"+msg );
});
}
module.exports = task;