master
huanghai 5 years ago
parent 1c3d7d77e8
commit f5953f6201

@ -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})
}
}

@ -33,7 +33,7 @@ require (
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/mattn/go-sqlite3 v1.10.0 // indirect
github.com/oklog/ulid v1.3.1
github.com/opesun/goquery v0.0.0-20160908163916-0d77e43213cd // indirect
github.com/opesun/goquery v0.0.0-20160908163916-0d77e43213cd
github.com/pborman/uuid v1.2.0 // indirect
github.com/pkg/errors v0.9.1
github.com/pkg/sftp v1.11.0

@ -67,7 +67,7 @@ func startOAuth2Server() {
// @title 东师理想统一认证中心(OAuth2+Sso)
// @version 2.0
// @description 参考自xxl-sso
// @host 127.0.0.1:8000
// @host 10.10.14.187:8000
func main() {
// 发布模式
//gin.SetMode(gin.ReleaseMode)

Loading…
Cancel
Save