MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / removeCachedToken

Method removeCachedToken

wxapp/tmj.js:159–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157 }
158
159 removeCachedToken() {
160 const cache = readTokenCache();
161 if (cache[this.openid]) {
162 delete cache[this.openid];
163 writeTokenCache(cache);
164 }
165 this.token = "";
166 this.shopId = "";
167 this.shopName = "";
168 this.integralAccount = "";
169 this.signActivityId = "";
170 }
171
172 applyToken(data = {}) {
173 this.token = data.token || data.mobileToken || "";

Callers 2

runMethod · 0.95
doSignMethod · 0.95

Calls 2

readTokenCacheFunction · 0.70
writeTokenCacheFunction · 0.70

Tested by

no test coverage detected