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

Method checkToken

wxapp/sinsin.js:225–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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