MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / ensureLuckmailApiKey

Function ensureLuckmailApiKey

background.js:1982–1988  ·  view source on GitHub ↗
(state = {})

Source from the content-addressed store, hash-verified

1980}
1981
1982function ensureLuckmailApiKey(state = {}) {
1983 const apiKey = String(state.luckmailApiKey || '').trim();
1984 if (!apiKey) {
1985 throw new Error('LuckMail API Key 为空,请先在侧边栏填写。');
1986 }
1987 return apiKey;
1988}
1989
1990async function requestLuckmail(method, path, { baseUrl, apiKey, params, jsonData, timeout = 30000 } = {}) {
1991 const requestUrl = new URL(`${normalizeLuckmailBaseUrl(baseUrl)}${path}`);

Callers 1

createLuckmailClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected