Skip to content

Commit

Permalink
fix: cannot unmarshal number 3.1 into Go struct field FileDownloadUrl…
Browse files Browse the repository at this point in the history
….url.client of type int (#16)

related: 
- alist-org/alist#5117
  • Loading branch information
SheltonZhu committed Aug 30, 2023
2 parents c079212 + 7f3a01c commit 71d2976
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/driver/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
)

type FileDownloadUrl struct {
Client int `json:"client"`
OSSID string `json:"oss_id"`
Url string `json:"url"`
Client float64 `json:"client"`
OSSID string `json:"oss_id"`
Url string `json:"url"`
}

type DownloadInfo struct {
Expand Down

0 comments on commit 71d2976

Please sign in to comment.