mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
fix:修复API变动造成图片无法返回的问题 (#250)
This commit is contained in:
parent
6678ca6c93
commit
fd7f5f719f
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user