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

Method query

wxapp/fhxmh.js:124–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 }
123
124 async query() {
125 const member = await this.api({ path: "/c/user/memberInfo", allowFail: true });
126 const user = await this.api({ path: "/p/user/userInfo", allowFail: true });
127 const data = member?.data || user?.data || {};
128 const score = data.score || data.points || data.integral || data.availableScore || data.totalScore;
129 const name = data.nickName || data.nickname || data.memberName || data.mobile || data.phone || "";
130 return `用户=${name || "未知"} 积分=${score ?? "未知"} member=${short(member?.data || member, 120)}`;
131 }
132
133 async sign() {
134 const todo = await this.api({

Callers 1

runAccountFunction · 0.95

Calls 2

apiMethod · 0.95
shortFunction · 0.70

Tested by

no test coverage detected