()
| 170 | } |
| 171 | |
| 172 | removeToken() { |
| 173 | const cache = readCache(); |
| 174 | if (cache[this.cacheKey]) { |
| 175 | delete cache[this.cacheKey].token; |
| 176 | writeCache(cache); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | async getWxCode() { |
| 181 | if (!this.openid) throw new Error("缺少 openid,无法从 wx_server 获取 code"); |
no test coverage detected