()
| 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" }); |