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

Function getSessionId

wxapp/qiaqia.js:54–62  ·  view source on GitHub ↗
(headers = {})

Source from the content-addressed store, hash-verified

52}
53
54function getSessionId(headers = {}) {
55 const cookies = headers["set-cookie"] || headers["Set-Cookie"] || headers["set-Cookie"];
56 const list = Array.isArray(cookies) ? cookies : (cookies ? [cookies] : []);
57 for (const cookie of list) {
58 const match = String(cookie).match(/(?:^|;\s*)SESSION=([^;]+)/);
59 if (match) return match[1];
60 }
61 return "";
62}
63
64function formBody(data = {}) {
65 const params = new URLSearchParams();

Callers 3

loginUpmsMethod · 0.85
loginMobileMethod · 0.85
mobilePostMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected