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

Method getHeaders

wxapp/yz19.js:136–152  ·  view source on GitHub ↗
(extra = {})

Source from the content-addressed store, hash-verified

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

Callers 1

requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected