MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / request

Function request

wxapp/junpinhui.js:114–125  ·  view source on GitHub ↗
(method, base, urlPath, { token = "", data = null, params = null } = {})

Source from the content-addressed store, hash-verified

112}
113
114async function request(method, base, urlPath, { token = "", data = null, params = null } = {}) {
115 const res = await axios({
116 method,
117 url: `${base}${urlPath}`,
118 data,
119 params,
120 timeout: 20000,
121 validateStatus: () => true,
122 headers: headers(token),
123 });
124 return res.data;
125}
126
127function aesCbcPkcs7Hex(text, key, iv) {
128 const keyBuf = Buffer.from(String(key), "utf8");

Callers 3

loginMethod · 0.70
gardenGetMethod · 0.70
gardenPostMethod · 0.70

Calls 1

headersFunction · 0.85

Tested by

no test coverage detected