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

Method task_read

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

Source from the content-addressed store, hash-verified

127 }
128
129 async task_read(id, catid) {
130 try {
131 let options = {
132 method: "post",
133 url: `https://eapp.eastobacco.com/index.php?m=api&c=content&a=addvisite`,
134 headers: {
135 "Content-Type": "application/x-www-form-urlencoded"
136 },
137 data: `platform=android&token=${this.ck}&timestamp=${Date.now()}&api_version=4&newsid=${id}&catid=${catid}`
138 }
139 let { data: result } = await axios.request(options);
140 //console.log(options);
141 //console.log(result);
142 if (result.code == 200) {
143 $.log(`✅账号[${this.index}] 阅读[${id}]成功🎉`)
144
145 } else {
146 $.log(`❌账号[${this.index}] 阅读[${id}]失败`)
147 }
148 } catch (e) {
149 console.log(e);
150 }
151 }
152
153 async task_share(id, catid) {
154 try {

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected