From 44e712fea33a9e1a77286b440b9042feb80f0385 Mon Sep 17 00:00:00 2001 From: hy5528 <95360525+hy5528@users.noreply.github.com> Date: Mon, 18 May 2026 09:22:54 +0800 Subject: [PATCH] =?UTF-8?q?Delete=20jar/=E8=81=9A=E5=90=88API=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20(CF).js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jar/聚合API接口 (CF).js | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 jar/聚合API接口 (CF).js diff --git a/jar/聚合API接口 (CF).js b/jar/聚合API接口 (CF).js deleted file mode 100644 index da25829..0000000 --- a/jar/聚合API接口 (CF).js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * @name 聚合API接口 (CF) - * @description v3 - * @version 3 - * @author lerd - */ -let{stringify:t,parse:a}=JSON;let x=(r)=>{throw new Error(r)};let{EVENT_NAMES:n,request:b,on,send:y,version:v}=globalThis.lx;let A='https://api.music.lerd.dpdns.org';let h=(u,o={method:'GET'})=>new Promise((s,j)=>{b(u,o,(e,r)=>{if(e)return j(e);s(r)})});h(A+'/init.conf').then(r=>{if(r.body.code!==200)x("脚本初始化失败");let U=r.body.data;if(U.update.version>v)y(n.updateAlert,U.update);y(n.inited,U.init);}).catch(e=>x(e));on(n.request,async({action,source,info})=>{let r=await h(`${A}/${source}`,{method:'POST',body:t(info),headers:{'Content-Type':'application/json'}});let B=r.body;if(B.code===200)return B.data.url;else if(B.code===303){let S=a(t(B.data));let D=S.request;let F=S.response;try{let z=await h(encodeURI(D.url),D.options);if(F.check.key.reduce((a,c)=>a&&a[c],z)==F.check.value){let u=F.url.reduce((a,c)=>a&&a[c],z);if(u.startsWith("http"))return u;}}catch(e){x(e)}}else x(B.msg);}); \ No newline at end of file