(prefix = "当前")
| 222 | } |
| 223 | |
| 224 | async memberInfo(prefix = "当前") { |
| 225 | try { |
| 226 | const data = await this.getMemberInfo(); |
| 227 | const name = data?.nickname || maskPhone(data?.phone) || data?.id || ""; |
| 228 | const integral = data?.integral ?? data?.point ?? data?.points ?? data?.score ?? "未知"; |
| 229 | $.log(`账号[${this.index}] ${prefix}用户: ${name},积分: ${integral}`); |
| 230 | } catch (e) { |
| 231 | const message = String(e.message || e); |
| 232 | $.log(`账号[${this.index}] 查询用户失败: ${message}`); |
| 233 | if (isTokenError(message)) this.removeCachedToken(); |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | async getSignStatus() { |
| 238 | const result = await this.request(API_BASE, "api/signIn/integralSignInList", { |
no test coverage detected