MCPcopy
hub / github.com/smallfawn/QLScriptPublic / signIn

Method signIn

daily/mtf.js:62–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61 }
62 async signIn() {
63 let options = {
64 method: 'POST',
65 url: `https://api.58moto.com/coins/task/dailyCheckIn`,
66 headers: {
67 "token": this.token,
68 "content-type": "application/x-www-form-urlencoded"
69 },
70 data: "uid=" + this.uid + "&weekDate=" + $.time('yyyyMMdd')
71 }
72 let { data: result } = await axios.request(options);
73
74 if (result?.code == 0) {
75 $.log(`签到成功:${result.data.contentDesc} 🎉`);
76 } else if (result?.code == 300101) {
77 $.log(`签到失败:${result.msg},请勿重复签到`);
78 } else {
79 $.log(`签到: 失败 ❌ 了呢,原因未知!`);
80 console.log(result);
81 }
82
83
84
85
86 }
87 async drwa() {
88 let options = {
89 method: 'POST',

Callers 1

runMethod · 0.95

Calls 3

timeMethod · 0.45
requestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected