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

Method memberInfo

wxapp/kangshifu.js:224–235  ·  view source on GitHub ↗
(prefix = "当前")

Source from the content-addressed store, hash-verified

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", {

Callers 1

runMethod · 0.95

Calls 5

getMemberInfoMethod · 0.95
removeCachedTokenMethod · 0.95
maskPhoneFunction · 0.70
isTokenErrorFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected