MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / queryProfile

Method queryProfile

wxapp/hisense_aijia.js:531–546  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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", {});

Callers 1

runMethod · 0.95

Calls 7

saveCacheMethod · 0.95
pureGuidFunction · 0.85
decryptByAppKeyFunction · 0.85
requestFunction · 0.70
maskFunction · 0.70
shortFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected