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

Method queryString

wxapp/iqoo.js:160–167  ·  view source on GitHub ↗
(data = {})

Source from the content-addressed store, hash-verified

158 }
159
160 queryString(data = {}) {
161 const list = [];
162 for (const [key, value] of Object.entries(data || {})) {
163 if (value === undefined || value === null) continue;
164 list.push(`${encodeURIComponent(key)}=${encodeURIComponent(value)}`);
165 }
166 return list.join("&");
167 }
168
169 getSign(method, apiPath, data = {}) {
170 const upperMethod = method.toUpperCase();

Callers 1

getSignMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected