()
| 165 | } |
| 166 | |
| 167 | async task_share() { // 执行分享 |
| 168 | try { |
| 169 | const options = { |
| 170 | url: 'https://app.geely.com/api/v1/share/awardPoint', |
| 171 | headers: this.headersPostv1, |
| 172 | body: ``, |
| 173 | }; |
| 174 | //console.log(options); |
| 175 | let result = await httpRequest(options); |
| 176 | //console.log(result); |
| 177 | if (result.code == "success") { |
| 178 | DoubleLog(`账号[${this.index}] 分享: ${result.code}`); |
| 179 | } else { |
| 180 | DoubleLog(`账号[${this.index}] 分享:失败 ❌ 了呢,原因未知!`); |
| 181 | console.log(result); |
| 182 | } |
| 183 | } catch (error) { |
| 184 | console.log(error); |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | async task_sign() { // 执行签到 |
| 189 | var date = new Date(+new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '') |
nothing calls this directly
no test coverage detected