()
| 288 | } |
| 289 | |
| 290 | async user_info() { |
| 291 | try { |
| 292 | let options = { |
| 293 | url: `https://gw.nevapp.gtmc.com.cn/main/api/community/lgn/user/getLoginUserInfo`, |
| 294 | headers: this.getHeadersGet_android(), |
| 295 | }, |
| 296 | result = await httpRequest(options); |
| 297 | //console.log(options); |
| 298 | //console.log(result); |
| 299 | if (result.header.code == 10000000) { |
| 300 | DoubleLog(`账号[${this.index}] 欢迎用户: [${result.body.baseInfo.nickname}]🎉`); |
| 301 | this.ckStatus = true; |
| 302 | this.nickname = result.body.baseInfo.nickname |
| 303 | } else if (result.header.code == 10001007) { |
| 304 | DoubleLog(`账号[${this.index}] 用户查询:失败 ❌ 了呢,原因Token过期,现在即将刷新token!`); |
| 305 | await this.refresh_token() |
| 306 | this.ckStatus = false; |
| 307 | console.log(result); |
| 308 | } else if (result.header.code = 10009999) { |
| 309 | DoubleLog(`账号[${this.index}] 用户查询:失败 ❌ 了呢,原因refreshToken已改变,请重新获取CK!`); |
| 310 | this.ckStatus = false; |
| 311 | } else { |
| 312 | DoubleLog(`账号[${this.index}] 用户查询:失败 ❌ 了呢,原因未知!`); |
| 313 | this.ckStatus = false; |
| 314 | console.log(result); |
| 315 | } |
| 316 | } catch (e) { |
| 317 | console.log(e); |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | |
| 322 | /** |
no test coverage detected