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