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

Method checkToken

wxapp/wugenvboshi.js:221–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219 }
220
221 async checkToken() {
222 try {
223 await this.getPoints("缓存校验");
224 return true;
225 } catch (e) {
226 return false;
227 }
228 }
229
230 async getPoints(label = "积分") {
231 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