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

Method checkToken

wxapp/ykb_all.js:351–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

349 }
350
351 async checkToken() {
352 try {
353 await this.request({ apiPath: "/ykb_huiyuan/api/v1/MemberMine/Info" });
354 return true;
355 } catch {
356 return false;
357 }
358 }
359
360 async getLoginCode() {
361 if (!process.env.wx_auth) throw new Error("未配置 wx_auth,无法通过 wx_server 获取 code");

Callers 1

runMethod · 0.95

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected