()
| 294 | } |
| 295 | |
| 296 | async getMemberPoints() { |
| 297 | try { |
| 298 | const result = await this.request({ apiPath: "/user/member/points" }); |
| 299 | const data = result.data || {}; |
| 300 | const points = data.points ?? data.availablePoints ?? data.totalPoints ?? data; |
| 301 | $.log(`账号[${this.index}] 当前积分: ${typeof points === "object" ? JSON.stringify(points) : points}`); |
| 302 | } catch (e) { |
| 303 | $.log(`账号[${this.index}] 查询积分失败: ${e.message || e}`); |
| 304 | } |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | !(async () => { |