MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / getUserInfo

Method getUserInfo

wxapp/fafa.js:225–241  ·  view source on GitHub ↗
(log = true)

Source from the content-addressed store, hash-verified

223 }
224
225 async getUserInfo(log = true) {
226 const data = await this.request({
227 method: "GET",
228 apiPath: "/p/user/userInfo",
229 });
230 this.userInfo = {
231 ...this.userInfo,
232 ...data,
233 };
234 this.saveCachedToken();
235 if (log) {
236 const name = data.nickName || data.memberName || data.userId || "未知";
237 const mobile = data.userMobile || data.mobile || "";
238 $.log(`账号[${this.index}] 用户: ${name}${mobile ? ` ${maskMobile(mobile)}` : ""}`);
239 }
240 return data;
241 }
242
243 async getPointsInfo() {
244 try {

Callers 2

runMethod · 0.95
checkTokenMethod · 0.95

Calls 4

requestMethod · 0.95
saveCachedTokenMethod · 0.95
maskMobileFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected