MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / removeToken

Method removeToken

wxapp/yichengtong.js:172–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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");

Callers 1

apiMethod · 0.95

Calls 2

readCacheFunction · 0.70
writeCacheFunction · 0.70

Tested by

no test coverage detected