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

Method miniHeaders

wxapp/longfor.js:364–379  ·  view source on GitHub ↗
(data = null, member = false)

Source from the content-addressed store, hash-verified

362 }
363
364 miniHeaders(data = null, member = false) {
365 const headers = {
366 "User-Agent": USER_AGENT,
367 "Referer": `https://servicewechat.com/${MINI_APP_ID}/${PAGE_VERSION}/page-frame.html`,
368 "Content-Type": "application/json",
369 "lmToken": this.token || "",
370 "X-LF-Bucode": BU_CODE,
371 "X-LF-App-Version": APP_VERSION,
372 "X-LF-RequestId": uuid(),
373 "X-LF-Channel": CHANNEL,
374 "X-LF-Api-Version": API_VERSION,
375 };
376 if (member) headers["X-Gaia-Api-Key"] = MEMBER_GAIA_KEY;
377 if (data) Object.assign(headers, miniSign(data));
378 return headers;
379 }
380
381 taskHeaders(dxToken = "") {
382 const headers = {

Callers 1

miniPostMethod · 0.95

Calls 2

miniSignFunction · 0.85
uuidFunction · 0.70

Tested by

no test coverage detected