()
| 241 | } |
| 242 | |
| 243 | async checkToken() { |
| 244 | try { |
| 245 | await this.getUserInfo(false); |
| 246 | return true; |
| 247 | } catch (e) { |
| 248 | return false; |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | async getUserInfo(needLog = true) { |
| 253 | const result = await this.request({ apiPath: "/user/profile" }); |