mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 12:42:27 +08:00
chore: fix subscription_info
This commit is contained in:
parent
daa332e7b0
commit
2577dd3af4
@ -25,7 +25,11 @@ func NewSubscriptionInfo(userinfo string) (si *SubscriptionInfo, err error) {
|
|||||||
case "total":
|
case "total":
|
||||||
si.Total, err = strconv.ParseInt(value, 10, 64)
|
si.Total, err = strconv.ParseInt(value, 10, 64)
|
||||||
case "expire":
|
case "expire":
|
||||||
si.Expire, err = strconv.ParseInt(value, 10, 64)
|
if value == "" {
|
||||||
|
si.Expire = 0
|
||||||
|
} else {
|
||||||
|
si.Expire, err = strconv.ParseInt(value, 10, 64)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user