MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / zeroLottery

Method zeroLottery

daily/dw.js:77–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 }
76
77 async zeroLottery() {
78
79 let options = {
80 method: "POST",
81 url: "https://app.dewu.com/api/v1/h5/oss-platform/hacking-zero-lottery/v1/activity/query-today",
82 headers: { "Content-Type": "application/json" },
83 data: { "source": "wotab" }
84 }
85 let { data: result } = await this.request(options)
86
87 if (result.code == 200) {
88 for (let i of result.data.activityList) {
89 if (i.status == 0) {
90 if ("taskVo" in i) {
91 //需要做任务
92
93 } else {
94 await this.zeroLotteryJoin(i.id)
95 }
96 }
97 }
98 } else {
99 $.log(`❌账号[${this.index}] 获取0元购列表失败[${result.msg}]🎉`)
100 }
101
102 }
103 async zeroLotteryJoin(id) {
104
105 let options = {

Callers 1

runMethod · 0.95

Calls 3

requestMethod · 0.95
zeroLotteryJoinMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected