(log = true)
| 195 | } |
| 196 | |
| 197 | async getUserInfo(log = true) { |
| 198 | const data = await this.request({ |
| 199 | method: "GET", |
| 200 | apiPath: "/p/user/userInfo", |
| 201 | }); |
| 202 | this.userInfo = { |
| 203 | ...this.userInfo, |
| 204 | ...data, |
| 205 | }; |
| 206 | this.saveCachedToken(); |
| 207 | if (log) $.log(`账号[${this.index}] 用户: ${data.nickName || ""} ${data.memberName || ""}`); |
| 208 | return data; |
| 209 | } |
| 210 | |
| 211 | async getPointsInfo() { |
| 212 | try { |
no test coverage detected