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

Method getUserInfo

wxapp/parkson.js:197–209  ·  view source on GitHub ↗
(log = true)

Source from the content-addressed store, hash-verified

195 }
196
197 async getUserInfo(log = true) {
198 const data = await this.request({
199 method: "GET",
200 apiPath: "/p/user/userInfo",
201 });
202 this.userInfo = {
203 ...this.userInfo,
204 ...data,
205 };
206 this.saveCachedToken();
207 if (log) $.log(`账号[${this.index}] 用户: ${data.nickName || ""} ${data.memberName || ""}`);
208 return data;
209 }
210
211 async getPointsInfo() {
212 try {

Callers 1

checkTokenMethod · 0.95

Calls 3

requestMethod · 0.95
saveCachedTokenMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected