Skip to content

Commit

Permalink
fix: 修复 app 版参数
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Nov 16, 2023
1 parent 1ae1ec4 commit ff8573c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.14.92",
"version": "2.14.93",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion backend/src/restful/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@ async function downloadSubscription(req, res) {
req.query.target || getPlatformFromHeaders(req.headers) || 'JSON';

$.info(`正在下载订阅:${name}`);
const { url, ua, content } = req.query;
let { url, ua, content } = req.query;
if (url) {
url = decodeURIComponent(url);
$.info(`指定 url: ${url}`);
}
if (ua) {
ua = decodeURIComponent(ua);
$.info(`指定 ua: ${ua}`);
}
if (content) {
content = decodeURIComponent(content);
$.info(`指定 content: ${content}`);
}

Expand Down

0 comments on commit ff8573c

Please sign in to comment.