Skip to content

Commit 6f2019e

Browse files
committed
fix: score
1 parent 5b6b9df commit 6f2019e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

plugin/score/sign_in.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,13 @@ func getrank(count int) int {
298298
}
299299

300300
func initPic(picFile string, avatarurl string) (avatar []byte, err error) {
301-
if avatarurl == "" {
302-
return
301+
if avatarurl != "" {
302+
avatar, err = web.GetData(avatarurl)
303+
if err != nil {
304+
return
305+
}
303306
}
304307
defer process.SleepAbout1sTo2s()
305-
avatar, err = web.GetData(avatarurl)
306-
if err != nil {
307-
return
308-
}
309308
if file.IsExist(picFile) {
310309
return
311310
}

0 commit comments

Comments
 (0)