fix: 修复 app 版参数

This commit is contained in:
xream 2023-11-16 12:49:06 +08:00
parent 1ae1ec40ca
commit ff8573cae7
No known key found for this signature in database
GPG Key ID: 1D2C5225471789F9
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "sub-store", "name": "sub-store",
"version": "2.14.92", "version": "2.14.93",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js", "main": "src/main.js",
"scripts": { "scripts": {

View File

@ -20,14 +20,17 @@ async function downloadSubscription(req, res) {
req.query.target || getPlatformFromHeaders(req.headers) || 'JSON'; req.query.target || getPlatformFromHeaders(req.headers) || 'JSON';
$.info(`正在下载订阅:${name}`); $.info(`正在下载订阅:${name}`);
const { url, ua, content } = req.query; let { url, ua, content } = req.query;
if (url) { if (url) {
url = decodeURIComponent(url);
$.info(`指定 url: ${url}`); $.info(`指定 url: ${url}`);
} }
if (ua) { if (ua) {
ua = decodeURIComponent(ua);
$.info(`指定 ua: ${ua}`); $.info(`指定 ua: ${ua}`);
} }
if (content) { if (content) {
content = decodeURIComponent(content);
$.info(`指定 content: ${content}`); $.info(`指定 content: ${content}`);
} }