()
| 389 | } |
| 390 | |
| 391 | async userInfo() { |
| 392 | const data = assertOk(await this.request("POST", "https://account.wps.cn/p/auth/check"), "查询用户信息"); |
| 393 | this.uid = data.userid || data.id || this.uid || this.cookies.uid || ""; |
| 394 | this.saveCache({ nickname: data.nickname || data.username || "" }); |
| 395 | $.log(`账号[${this.index}] 用户: ${mask(data.nickname || data.username || this.uid)}`); |
| 396 | } |
| 397 | |
| 398 | async sign() { |
| 399 | const body = { client_type: CLIENT_TYPE }; |