fix(drawlots): draw gif noise

This commit is contained in:
源文雨
2024-05-02 22:48:06 +09:00
parent 63784b4ed0
commit 803c027264
2 changed files with 7 additions and 5 deletions

View File

@@ -41,6 +41,7 @@ func init() {
enc := base64.NewEncoder(base64.StdEncoding, buf)
_, err := io.Copy(enc, resp.Body)
if err != nil {
logrus.Warnln("[emojimix] copy err:", err)
return
}
_ = enc.Close()
@@ -52,7 +53,7 @@ func init() {
_ = resp.Body.Close()
return
}
resp, err = http2.Head(u2)
resp, err = http2.Get(u2)
if err == nil {
send(resp)
_ = resp.Body.Close()