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

Method checkToken

wxapp/yunduodingding.js:220–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218 }
219
220 async checkToken() {
221 try {
222 await this.getPoints("缓存校验");
223 return true;
224 } catch (e) {
225 return false;
226 }
227 }
228
229 async getPoints(label = "积分") {
230 const data = await this.request({ apiPath: "wscump/integral/user_points.json" });

Callers 1

runMethod · 0.95

Calls 1

getPointsMethod · 0.95

Tested by

no test coverage detected