From fd5ebe5248ba7a7ff9b29bccd99ec930808a6656 Mon Sep 17 00:00:00 2001 From: lyz05 <294068487@qq.com> Date: Sun, 1 Jan 2023 20:54:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=A0=E5=B0=8F=E7=81=AB=E7=AE=AD?= =?UTF-8?q?=E9=BB=98=E8=AE=A4UA=E4=B8=BA=E6=B5=8F=E8=A7=88=E5=99=A8UA?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=89=80=E6=9C=89=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E5=9D=87=E9=87=87=E7=94=A8=E5=8A=A0=E9=80=9F=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/airportsub.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/routes/airportsub.js b/routes/airportsub.js index d26f2c6..407f420 100644 --- a/routes/airportsub.js +++ b/routes/airportsub.js @@ -57,15 +57,8 @@ router.get("/", async function (req, res) { const subinfo = database.suburl[req.query.ctype]; //返回指定订阅信息 if (subinfo) { - const ua = req.headers["user-agent"]; - // 判断是否要生成加速链接 - if (ua.indexOf("Mozilla") === -1) { - const url = await oss.signurl("SUB/" + req.query.ctype, true); - res.redirect(url); - } else { - const ret = await oss.get("SUB/" + req.query.ctype); - res.type("text/plain").end(ret); - } + const url = await oss.signurl("SUB/" + req.query.ctype, true); + res.redirect(url); } else { res.status(404).send("Not Found 找不到这种订阅类型"); }