mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
feat: 订阅流量信息中的 expire <=0 时, 视为空
This commit is contained in:
@@ -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}": ${
|
||||
|
||||
Reference in New Issue
Block a user