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

Method checkToken

wxapp/aiguoyue.js:222–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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