MCPcopy Create free account
hub / github.com/Rfym21/Qwen2API / refreshCookies

Function refreshCookies

src/utils/ssxmod-manager.js:25–37  ·  view source on GitHub ↗

* 刷新 SSXMOD Cookie

()

Source from the content-addressed store, hash-verified

23 */
24function getSsxmodForAccount(account) {
25 const email = account && account.email;
26 if (!email) {
27 // Fallback for calls without account context — use a synthetic key
28 return getOrGenerate('__global__');
29 }
30 return getOrGenerate(email);
31}
32
33/**
34 * Internal: get from cache or generate fresh cookies.
35 * @param {string} key
36 * @returns {{ssxmod_itna: string, ssxmod_itna2: string}}
37 */
38function evictOldestSsxmod() {
39 if (accountCache.size <= MAX_CACHE_SIZE) return;
40 const oldestKey = accountCache.keys().next().value;

Callers 1

initSsxmodManagerFunction · 0.85

Calls 3

generateCookiesFunction · 0.85
infoMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected