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

Method h5Headers

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

Source from the content-addressed store, hash-verified

146 }
147
148 h5Headers(extra = {}) {
149 return {
150 "content-type": "application/json",
151 Origin: H5_API,
152 Referer: SIGN_PAGE,
153 sessionId: this.sessionId || "",
154 NEWOPPOSID: this.encryptedSession || "",
155 openid: this.openId || "",
156 sa_distinct_id: this.openId || "",
157 constToken: this.sessionId || "",
158 Cookie: [
159 `NEWOPPOSID=${encodeURIComponent(this.encryptedSession || "")}`,
160 `sessionId=${encodeURIComponent(this.sessionId || "")}`,
161 `openid=${encodeURIComponent(this.openId || "")}`,
162 ].join("; "),
163 ...extra,
164 };
165 }
166
167 async miniRequest(method, path, data = {}) {
168 const upperMethod = method.toUpperCase();

Callers 1

h5RequestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected