()
| 92 | } |
| 93 | |
| 94 | async run() { |
| 95 | await this.loginByWxCode(); |
| 96 | if (!this.token) return; |
| 97 | await this.pointInfo() |
| 98 | await this.signIn() |
| 99 | } |
| 100 | |
| 101 | async getLoginCode() { |
| 102 | if (!process.env.wx_auth) throw new Error("缺少 wx_auth,无法从 wx_server 获取 code"); |
no test coverage detected