()
| 164 | } |
| 165 | |
| 166 | async getLoginCode() { |
| 167 | const { data } = await wechat.getCode(this.account); |
| 168 | const code = data?.code || data?.data?.code; |
| 169 | if (!code) throw new Error(`wx_server 未返回 code: ${JSON.stringify(data)}`); |
| 170 | return code; |
| 171 | } |
| 172 | |
| 173 | async loginByWxCode() { |
| 174 | try { |