| 529 | } |
| 530 | |
| 531 | async queryProfile() { |
| 532 | const res = await request("GET", "", `${POINT_BASE}/MobileMiniAppAPI/s/6.3/account/getCustomerProfile`, { |
| 533 | accessToken: this.accessToken, |
| 534 | timeStamp: Math.floor(Date.now() / 1000), |
| 535 | customerId: this.customerId, |
| 536 | randStr: pureGuid(), |
| 537 | }, { signType: "WEB_CN_GW" }); |
| 538 | if (res.status === 200 && Number(res.data?.resultCode) === 0) { |
| 539 | const data = res.data.data || {}; |
| 540 | this.phone = decryptByAppKey(data.mobilePhone || "") || this.phone; |
| 541 | this.saveCache({ phone: this.phone }); |
| 542 | $.log(`账号[${this.index}] 用户: ${mask(data.mobilePhone || this.customerId)}${data.nickName ? `,${data.nickName}` : ""}`); |
| 543 | } else { |
| 544 | $.log(`账号[${this.index}] 用户信息查询失败: ${short(res.data, 300)}`); |
| 545 | } |
| 546 | } |
| 547 | |
| 548 | async queryPoints() { |
| 549 | const res = await this.pointScore("/AIoTPointsMall/gw/svc/HiScore/1.0/userPoints", {}); |