mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-03 20:10:37 +08:00
fix: 修复 app 版参数
This commit is contained in:
parent
1ae1ec40ca
commit
ff8573cae7
@ -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": {
|
||||||
|
@ -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}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user