feat: 订阅流量信息中的 expire <=0 时, 视为空

This commit is contained in:
xream
2025-08-01 13:09:11 +08:00
parent 59ea2bd174
commit cbfe528c5e
2 changed files with 7 additions and 1 deletions

View File

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

View File

@@ -342,6 +342,12 @@ export function normalizeFlowHeader(flowHeaders) {
) {
try {
decodedValue = Number(decodedValue).toFixed(0);
if (
['expire'].includes(key) &&
decodedValue <= 0
) {
decodedValue = '';
}
} catch (e) {
$.error(
`Failed to convert value for key "${key}=${encodedValue}": ${