MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / saveCookies

Function saveCookies

static/js/accounts.js:2217–2227  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

2215
2216// 保存账号 Cookies
2217async function saveCookies(id) {
2218 const textarea = document.getElementById(`cookies-input-${id}`);
2219 if (!textarea) return;
2220 const cookiesValue = textarea.value.trim();
2221 try {
2222 await api.patch(`/accounts/${id}`, { cookies: cookiesValue });
2223 toast.success('Cookies 已保存');
2224 } catch (e) {
2225 toast.error('保存 Cookies 失败: ' + e.message);
2226 }
2227}
2228
2229// 查询收件箱验证码
2230async function checkInboxCode(id) {

Callers

nothing calls this directly

Calls 3

successMethod · 0.80
errorMethod · 0.80
patchMethod · 0.45

Tested by

no test coverage detected