fix:修复API变动造成图片无法返回的问题 (#250)

This commit is contained in:
MoeMagicMango 2022-06-02 12:20:17 +08:00 committed by GitHub
parent 6678ca6c93
commit fd7f5f719f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,7 +276,7 @@ func initPic(picFile string) error {
if err != nil {
return err
}
picURL := gjson.Get(string(data), "pic").String()
picURL := gjson.Get(string(data), "pic.0").String()
data, err = web.RequestDataWith(web.NewDefaultClient(), picURL, "GET", "", ua)
if err != nil {
return err