| 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}×tamp=${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 | |