Skip to content

Commit

Permalink
fix: score
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Nov 20, 2023
1 parent 5b6b9df commit 6f2019e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions plugin/score/sign_in.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,14 +298,13 @@ func getrank(count int) int {
}

func initPic(picFile string, avatarurl string) (avatar []byte, err error) {
if avatarurl == "" {
return
if avatarurl != "" {
avatar, err = web.GetData(avatarurl)
if err != nil {
return
}
}
defer process.SleepAbout1sTo2s()
avatar, err = web.GetData(avatarurl)
if err != nil {
return
}
if file.IsExist(picFile) {
return
}
Expand Down

0 comments on commit 6f2019e

Please sign in to comment.