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

Method task_like

daily/dfyc.js:177–199  ·  view source on GitHub ↗
(id, catid)

Source from the content-addressed store, hash-verified

175 }
176
177 async task_like(id, catid) {
178 try {
179 let options = {
180 method: "post",
181 url: `https://eapp.eastobacco.com/index.php?m=api&c=content&a=dingcai`,
182 headers: {
183 "Content-Type": "application/x-www-form-urlencoded"
184 },
185 data: `platform=android&token=${this.ck}&timestamp=${Date.now()}&api_version=4&newsid=${id}&catid=${catid}`
186 }
187 let { data: result } = await axios.request(options);
188 //console.log(options);
189 //console.log(result);
190 if (result.code == 200) {
191 $.log(`✅账号[${this.index}] 点赞[${id}]成功🎉`)
192
193 } else {
194 $.log(`❌账号[${this.index}] 点赞[${id}]失败`)
195 }
196 } catch (e) {
197 console.log(e);
198 }
199 }
200
201}
202

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected