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

Method getHeaders

wxapp/yz9d.js:132–148  ·  view source on GitHub ↗
(extra = {})

Source from the content-addressed store, hash-verified

130 }
131
132 getHeaders(extra = {}) {
133 const headers = {
134 "User-Agent": USER_AGENT,
135 "Referer": `https://servicewechat.com/${MINI_APP_ID}/${PAGE_VERSION}/page-frame.html`,
136 "Accept": "*/*",
137 "Extra-Data": JSON.stringify({
138 sid: this.sessionId || "",
139 version: USER_VERSION,
140 clientType: "weapp-miniprogram",
141 client: "weapp",
142 bizEnv: "wsc",
143 }),
144 ...extra,
145 };
146 if (this.cookie) headers.Cookie = this.cookie;
147 return headers;
148 }
149
150 getBaseParams(params = {}) {
151 return {

Callers 1

requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected