()
| 349 | } |
| 350 | |
| 351 | async checkToken() { |
| 352 | try { |
| 353 | await this.request({ apiPath: "/ykb_huiyuan/api/v1/MemberMine/Info" }); |
| 354 | return true; |
| 355 | } catch { |
| 356 | return false; |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | async getLoginCode() { |
| 361 | if (!process.env.wx_auth) throw new Error("未配置 wx_auth,无法通过 wx_server 获取 code"); |