()
| 325 | return a |
| 326 | } |
| 327 | async 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 | } |
| 354 | async function ocr(path, data) { |
| 355 | try { |
| 356 | let options = { |
no test coverage detected