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

Function request

wxapp/mimengshenghuo.js:71–83  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

69}
70
71async function request(options) {
72 const res = await axios.request({
73 timeout: 20000,
74 validateStatus: () => true,
75 ...options,
76 headers: {
77 "User-Agent": USER_AGENT,
78 Accept: "application/json, text/plain, */*",
79 ...(options.headers || {}),
80 },
81 });
82 return { status: res.status, headers: res.headers || {}, data: res.data };
83}
84
85async function getWxCode(openid) {
86 if (!WX_AUTH) throw new Error("未配置 wx_auth");

Callers 2

getWxCodeFunction · 0.70
gqlMethod · 0.70

Calls 1

requestMethod · 0.45

Tested by

no test coverage detected