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

Function writeCache

wxapp/feihe.js:40–46  ·  view source on GitHub ↗
(cache)

Source from the content-addressed store, hash-verified

38}
39
40function writeCache(cache) {
41 try {
42 fs.writeFileSync(TOKEN_CACHE_FILE, JSON.stringify(cache, null, 2), "utf8");
43 } catch (e) {
44 $.log(`写入token缓存失败: ${e.message || e}`);
45 }
46}
47
48function maskToken(token = "") {
49 if (!token) return "";

Callers 2

saveCachedTokenMethod · 0.70
removeCachedTokenMethod · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected