()
| 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({ |