mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-24 05:02:14 +08:00
fix: subscriptionInfo api
This commit is contained in:
parent
943137de3b
commit
53b2a480ef
@ -7,10 +7,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type SubscriptionInfo struct {
|
type SubscriptionInfo struct {
|
||||||
Upload uint64
|
Upload int64
|
||||||
Download uint64
|
Download int64
|
||||||
Total uint64
|
Total int64
|
||||||
Expire uint64
|
Expire int64
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewSubscriptionInfo(str string) (si *SubscriptionInfo, err error) {
|
func NewSubscriptionInfo(str string) (si *SubscriptionInfo, err error) {
|
||||||
@ -51,7 +51,7 @@ func NewSubscriptionInfo(str string) (si *SubscriptionInfo, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func str2uint64(str string) (uint64, error) {
|
func str2uint64(str string) (int64, error) {
|
||||||
i, err := strconv.ParseInt(str, 10, 64)
|
i, err := strconv.ParseInt(str, 10, 64)
|
||||||
return uint64(i), err
|
return i, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user