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

Function notice

backup/sysxc.js:327–353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

325 return a
326}
327async function notice() {
328 try {
329 let options = {
330 url: `https://ghproxy.com/https://raw.githubusercontent.com/smallfawn/api/main/notice.json`,
331 headers: {
332 'User-Agent': ''
333 },
334 }
335 //console.log(options);
336 let result = await httpRequest(options);
337 //console.log(result);
338 if (result) {
339 if ('notice' in result) {
340 DoubleLog(`${result.notice}`);
341 } else {
342 options.url = `https://gitee.com/smallfawn/api/raw/master/notice.json`
343 result = await httpRequest(options);
344 if ('notice' in result) {
345 DoubleLog(`${result.notice}`);
346 }
347 }
348 } else {
349 }
350 } catch (e) {
351 console.log(e);
352 }
353}
354async function ocr(path, data) {
355 try {
356 let options = {

Callers 1

startFunction · 0.85

Calls 3

httpRequestFunction · 0.70
DoubleLogFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected