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

Method checkToken

wxapp/niuniuduanju.js:223–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221 }
222
223 async checkToken() {
224 try {
225 const result = await this.request({ apiPath: "/app/user/selectUserById" });
226 this.user = result.data || this.user;
227 return true;
228 } catch (e) {
229 return false;
230 }
231 }
232
233 async getPoints(label = "积分") {
234 const result = await this.request({ apiPath: "/app/integral/selectByUserId" });

Callers 1

runMethod · 0.95

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected