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

Function writeTokenCache

wxapp/mimengshenghuo.js:63–69  ·  view source on GitHub ↗
(cache)

Source from the content-addressed store, hash-verified

61}
62
63function writeTokenCache(cache) {
64 try {
65 fs.writeFileSync(TOKEN_CACHE_FILE, JSON.stringify(cache, null, 2), "utf8");
66 } catch (e) {
67 $.log(`写入token缓存失败: ${e.message || e}`);
68 }
69}
70
71async function request(options) {
72 const res = await axios.request({

Callers 2

saveCachedTokenMethod · 0.70
removeCachedTokenMethod · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected