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

Function writeCache

wxapp/fyzq.js:41–47  ·  view source on GitHub ↗
(cache)

Source from the content-addressed store, hash-verified

39}
40
41function writeCache(cache) {
42 try {
43 fs.writeFileSync(TOKEN_CACHE_FILE, JSON.stringify(cache, null, 2), "utf8");
44 } catch (e) {
45 $.log(`token缓存写入失败: ${e.message || e}`);
46 }
47}
48
49function makeSign(params) {
50 const text = Object.keys(params)

Callers 2

saveTokenMethod · 0.70
removeTokenMethod · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected