()
| 127 | } |
| 128 | |
| 129 | removeCachedToken() { |
| 130 | const cache = readTokenCache(); |
| 131 | if (cache[this.openid]) { |
| 132 | delete cache[this.openid]; |
| 133 | writeTokenCache(cache); |
| 134 | } |
| 135 | this.session = {}; |
| 136 | } |
| 137 | |
| 138 | async getLoginCode() { |
| 139 | const { data } = await wechat.getCode(this.openid); |
no test coverage detected