()
| 196 | |
| 197 | // 刷新Key函数 |
| 198 | async refresh_token() { |
| 199 | try { |
| 200 | let options = { |
| 201 | url: `https://galaxy-user-api.geely.com/api/v1/login/refresh?refreshToken=${this.refreshToken}`, |
| 202 | headers: this.getGetHeader(204179735, `/api/v1/login/refresh?refreshToken=${this.refreshToken}`), |
| 203 | }, |
| 204 | result = await httpRequest(options); |
| 205 | if (result.code == 'success') { |
| 206 | console.log(`✅${result.message}: ${result.data.centerTokenDto.token} \n🆗刷新KEY:${result.data.centerTokenDto.refreshToken}`); |
| 207 | this.ckStatus = true; |
| 208 | this.token = result.data.centerTokenDto.token |
| 209 | } else { |
| 210 | $.DoubleLog(`❌ ${result.message}`); |
| 211 | this.ckStatus = false; |
| 212 | console.log(result); |
| 213 | Notify = 1; |
| 214 | } |
| 215 | } catch (e) { |
| 216 | console.log(e) |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | //签到状态查询函数 |
| 221 | async signstate() { |
no test coverage detected