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

Function form

wxapp/vipshop.js:89–96  ·  view source on GitHub ↗
(data = {})

Source from the content-addressed store, hash-verified

87}
88
89function form(data = {}) {
90 const params = new URLSearchParams();
91 for (const [key, value] of Object.entries(data)) {
92 if (value === undefined || value === null) continue;
93 params.append(key, typeof value === "object" ? JSON.stringify(value) : String(value));
94 }
95 return params.toString();
96}
97
98function parseAccount(raw = "") {
99 const text = String(raw || "").trim();

Callers 4

getVipWechatInfoMethod · 0.85
autoLoginMethod · 0.85
signInfoMethod · 0.85
signMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected