| 186 | } |
| 187 | |
| 188 | async task_sign() { // 执行签到 |
| 189 | var date = new Date(+new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '') |
| 190 | let body = { "signDate": date, "ts": Number(ts10()), "cId": "BLqo2nmmoPgGuJtFDWlUjRI2b1b" } |
| 191 | try { |
| 192 | let options = { |
| 193 | url: 'https://app.geely.com/api/v1/userSign/sign/', |
| 194 | headers: { |
| 195 | 'Host': 'app.geely.com', |
| 196 | 'x-data-sign': enen(body), |
| 197 | 'user-agent': 'Mozilla/5.0 (Linux; Android 10; MI 8 Lite Build/QKQ1.190910.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/81.0.4044.138 Mobile Safari/537.36/geelyApp/android/geelyApp', |
| 198 | 'token': this.ck, |
| 199 | 'Content-Type': 'application/json', |
| 200 | 'origin': 'https://app.geely.com', |
| 201 | 'x-requested-with': 'com.geely.consumer', |
| 202 | 'sec-fetch-site': 'same-origin', |
| 203 | 'sec-fetch-mode': 'cors', |
| 204 | 'sec-fetch-dest': 'empty', |
| 205 | 'referer': 'https://app.geely.com/app-h5/sign-in/?showTitleBar=0&needLogin=1' |
| 206 | }, |
| 207 | body: JSON.stringify(body), |
| 208 | }; |
| 209 | //console.log(options); |
| 210 | let result = await httpRequest(options); |
| 211 | //console.log(result); |
| 212 | if (result.code == "success") { |
| 213 | DoubleLog(`账号[${this.index}] 签到: ${result.code}`); |
| 214 | } else { |
| 215 | DoubleLog(`账号[${this.index}] 签到:失败 ❌ 了呢,原因未知!` + result.message); |
| 216 | //console.log(result); |
| 217 | } |
| 218 | } catch (error) { |
| 219 | console.log(error); |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | async task_create1() { // 发布动态 |
| 224 | let createTxt = await this.hitokoto() |