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

Commit

Permalink
Update api.go
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkLeong committed Dec 7, 2021
1 parent e8f15db commit f99b245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aliyun/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func GetFile(w http.ResponseWriter, url string, token string, rangeStr string, i

func RefreshToken(refreshToken string) model.RefreshTokenModel {
path := refreshToken
if _, errs := os.Stat(path); errs == nil || os.IsNotExist(errs) {
if _, errs := os.Stat(path); errs == nil {
buf, _ := ioutil.ReadFile(path)
refreshToken = string(buf)
if len(refreshToken) >= 32 {
Expand Down

0 comments on commit f99b245

Please sign in to comment.