()
| 179 | } |
| 180 | |
| 181 | async getLoginCode() { |
| 182 | const { data } = await wechat.getCode(this.account); |
| 183 | const code = data?.code || data?.data?.code; |
| 184 | if (!code) throw new Error(`wx_server 未返回 code: ${JSON.stringify(data)}`); |
| 185 | return code; |
| 186 | } |
| 187 | |
| 188 | async loginByWxCode() { |
| 189 | try { |