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