MCPcopy Create free account
hub / github.com/anyehttp/quantumult-x / Sign

Function Sign

task/xpnc.js:60–77  ·  view source on GitHub ↗
(user)

Source from the content-addressed store, hash-verified

58
59// 签到
60async function Sign(user) {
61 let urlObject = {
62 url: `https://p.xpfarm.cn/treemp/user.PersonalCenter/addSignIn`,
63 headers: {
64 'Host': 'p.xpfarm.cn',
65 'Content-Type': 'application/json',
66 'authorization': user.authorization,
67 'user-agent': 'Mozilla/5.0',
68 },
69 body: JSON.stringify({}),
70 };
71 let result = await httpRequest(urlObject);
72 if (result?.code === '1000') {
73 DoubleLog(`🌸账号[${user.index}]🕊签到成功-获得${result.data.reward.integral}积分🎉`);
74 } else {
75 DoubleLog(`🌸账号[${user.index}]签到-状态:${result.message}`);
76 }
77}
78
79// 完成任务
80async function Task(user, id) {

Callers 1

userTaskFunction · 0.85

Calls 2

httpRequestFunction · 0.70
DoubleLogFunction · 0.70

Tested by

no test coverage detected