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

Function getNotice

wxapp/kangshifu.js:283–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

281 .finally(() => $.done());
282
283async function getNotice() {
284 try {
285 const options = {
286 url: "https://ghproxy.net/https://raw.githubusercontent.com/smallfawn/Note/refs/heads/main/Notice.json",
287 headers: {
288 "User-Agent": defaultUserAgent,
289 },
290 timeout: 3000,
291 };
292 const { data: res } = await axios.request(options);
293 $.log(res);
294 return res;
295 } catch (e) {}
296}

Callers 1

kangshifu.jsFile · 0.70

Calls 2

requestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected