💩👌 make lint happy

This commit is contained in:
fumiama
2022-01-14 20:00:02 +08:00
parent 9cfa44d434
commit 18ae566d34
6 changed files with 28 additions and 68 deletions

View File

@@ -3,15 +3,17 @@ package plugin_gif
import (
"strconv"
"strings"
"github.com/FloatTech/zbputils/file"
)
func (c *context) prepareLogos(s ...string) {
for i, v := range s {
_, err := strconv.Atoi(v)
if err != nil {
download("https://gchat.qpic.cn/gchatpic_new//--"+strings.ToUpper(v)+"/0", c.usrdir+strconv.Itoa(i)+".gif")
file.DownloadTo("https://gchat.qpic.cn/gchatpic_new//--"+strings.ToUpper(v)+"/0", c.usrdir+strconv.Itoa(i)+".gif", true)
} else {
download("http://q4.qlogo.cn/g?b=qq&nk="+v+"&s=640", c.usrdir+strconv.Itoa(i)+".gif")
file.DownloadTo("http://q4.qlogo.cn/g?b=qq&nk="+v+"&s=640", c.usrdir+strconv.Itoa(i)+".gif", true)
}
}
}