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

Method checkToken

wxapp/feihe.js:217–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215 }
216
217 async checkToken() {
218 try {
219 const result = await this.request({
220 method: "POST",
221 apiPath: "/api/structures/index",
222 data: { id: "" },
223 allowFail: true,
224 });
225 return String(result?.code) === "200";
226 } catch (e) {
227 return false;
228 }
229 }
230
231 async getIndexInfo() {
232 const result = await this.request({

Callers 1

runMethod · 0.95

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected