Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
修改在win下rt报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkLeong committed Dec 6, 2021
1 parent 75391f9 commit 456a10c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aliyun/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func GetFile(w http.ResponseWriter, url string, token string, rangeStr string, i

func RefreshToken(refreshToken string) model.RefreshTokenModel {
path := refreshToken
if _, err := os.Stat(path); err == nil {
if _, errs := os.Stat(path); errs == nil || os.IsNotExist(errs) {
buf, _ := ioutil.ReadFile(path)
refreshToken = string(buf)
if len(refreshToken) >= 32 {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func init() {
cache.Init()
}

var Version = "v1.0.20"
var Version = "v1.0.21"

type Task struct {
Id string `json:"id"`
Expand Down

0 comments on commit 456a10c

Please sign in to comment.