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

Method loadCache

wxapp/vipshop.js:277–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275 }
276
277 loadCache() {
278 const cached = this.getCached();
279 this.token = this.token || cached.token || "";
280 this.userId = this.userId || cached.userId || "";
281 this.vipOpenid = this.vipOpenid || cached.vipOpenid || "";
282 this.unionid = this.unionid || cached.unionid || "";
283 this.marsCid = this.account.marsCid || cached.marsCid || this.marsCid;
284 }
285
286 async getVipWechatInfo(code) {
287 const data = { ...this.baseData(), code, iv: "", encryptedData: "", hash: HASH };

Callers 1

ensureLoginMethod · 0.95

Calls 1

getCachedMethod · 0.95

Tested by

no test coverage detected