diff --git a/backend/package.json b/backend/package.json index f1e8a5bf5..7e0bd82b9 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.416", + "version": "2.14.417", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/utils/flow.js b/backend/src/utils/flow.js index fc7a1fef0..014175479 100644 --- a/backend/src/utils/flow.js +++ b/backend/src/utils/flow.js @@ -198,12 +198,18 @@ export function parseFlowHeaders(flowHeaders) { const appUrlMatch = flowHeaders.match(/app_url=(.*?)\s*?(;|$)/); const appUrl = appUrlMatch ? appUrlMatch[1] : undefined; + const planNameMatch = flowHeaders.match(/plan_name=(.*?)\s*?(;|$)/); + const planName = planNameMatch + ? decodeURIComponent(planNameMatch[1]) + : undefined; + return { expires, total, usage: { upload, download }, remainingDays, appUrl, + planName, }; }