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

Function writeCache

wxapp/jingjianx_all.js:197–203  ·  view source on GitHub ↗
(cache)

Source from the content-addressed store, hash-verified

195}
196
197function writeCache(cache) {
198 try {
199 fs.writeFileSync(CACHE_FILE, JSON.stringify(cache, null, 2), "utf8");
200 } catch (e) {
201 $.log(`写入token缓存失败: ${e.message || e}`);
202 }
203}
204
205function shortToken(token = "") {
206 const value = String(token).replace(/^Bearer\s+/i, "");

Callers 2

saveTokenMethod · 0.70
clearTokenMethod · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected