(log = true)
| 223 | } |
| 224 | |
| 225 | async getUserInfo(log = true) { |
| 226 | const data = await this.request({ |
| 227 | method: "GET", |
| 228 | apiPath: "/p/user/userInfo", |
| 229 | }); |
| 230 | this.userInfo = { |
| 231 | ...this.userInfo, |
| 232 | ...data, |
| 233 | }; |
| 234 | this.saveCachedToken(); |
| 235 | if (log) { |
| 236 | const name = data.nickName || data.memberName || data.userId || "未知"; |
| 237 | const mobile = data.userMobile || data.mobile || ""; |
| 238 | $.log(`账号[${this.index}] 用户: ${name}${mobile ? ` ${maskMobile(mobile)}` : ""}`); |
| 239 | } |
| 240 | return data; |
| 241 | } |
| 242 | |
| 243 | async getPointsInfo() { |
| 244 | try { |
no test coverage detected