|
|
|
@ -543,8 +543,8 @@ func wxShowImg(context *gin.Context) {
|
|
|
|
|
if err != nil {
|
|
|
|
|
context.JSON(http.StatusOK, map[string]interface{}{"success": false, "imgSrc": "", "message": "获取微信图片发生异常!"})
|
|
|
|
|
} else {
|
|
|
|
|
pTitle := p.Find("img").Attr("src")
|
|
|
|
|
pTitle = `https://open.weixin.qq.com/` + pTitle
|
|
|
|
|
context.JSON(http.StatusOK, map[string]interface{}{"success": true, "imgSrc": pTitle})
|
|
|
|
|
imgSrc := p.Find("img").Attr("src")
|
|
|
|
|
imgSrc = `https://open.weixin.qq.com` + imgSrc
|
|
|
|
|
context.JSON(http.StatusOK, map[string]interface{}{"success": true, "imgSrc": imgSrc})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|