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

Method task_share

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

Source from the content-addressed store, hash-verified

151 }
152
153 async task_share(id, catid) {
154 try {
155 let options = {
156 method: "post",
157 url: `https://eapp.eastobacco.com/index.php?m=api&c=user&a=addScoreZf`,
158 headers: {
159 "Content-Type": "application/x-www-form-urlencoded"
160 },
161 data: `platform=android&token=${this.ck}&timestamp=${Date.now()}&api_version=4&id=${id}&catid=${catid}`
162 }
163 let { data: result } = await axios.request(options);
164 //console.log(options);
165 //console.log(result);
166 if (result.code == 200) {
167 $.log(`✅账号[${this.index}] 分享[${id}]成功🎉`)
168
169 } else {
170 $.log(`❌账号[${this.index}] 分享[${id}]失败`)
171 }
172 } catch (e) {
173 console.log(e);
174 }
175 }
176
177 async task_like(id, catid) {
178 try {

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected