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

Method account

wxapp/gyjj.js:253–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

251 }
252
253 async account() {
254 try {
255 const result = await this.request("/user/info");
256 this.userInfo = result.data || {};
257 this.saveCachedToken();
258 $.log(`🕊账号[${this.index}] 查询成功:总积分[${result.data?.score ?? "未知"}]🎉`);
259 } catch (e) {
260 const message = String(e.message || e);
261 $.log(`🕊账号[${this.index}] 查询失败:${message}🚫`);
262 if (isTokenError(message)) this.removeCachedToken();
263 }
264 }
265}
266
267!(async () => {

Callers 1

runMethod · 0.95

Calls 5

requestMethod · 0.95
saveCachedTokenMethod · 0.95
removeCachedTokenMethod · 0.95
isTokenErrorFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected