()
| 187 | } |
| 188 | |
| 189 | async getLoginCode() { |
| 190 | const { data } = await wechat.getCode(this.account); |
| 191 | const code = data?.code || data?.data?.code; |
| 192 | if (!code) throw new Error(`wx_server 未返回 code: ${JSON.stringify(data)}`); |
| 193 | return code; |
| 194 | } |
| 195 | |
| 196 | async loginByWxCode() { |
| 197 | try { |