dengbiao 4 months ago
parent
commit
d85e704386
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/hdl/hdl_wx_open.go

+ 1
- 1
app/hdl/hdl_wx_open.go View File

@@ -152,7 +152,7 @@ func GetPreAuthCode(c *gin.Context) {
c.Writer.Header().Set("Access-Control-Allow-Origin", "*") c.Writer.Header().Set("Access-Control-Allow-Origin", "*")
redirectURI := "http://super.advertisement.dengbiao.top/api/wxOpen/getAuthUrlCallBack" redirectURI := "http://super.advertisement.dengbiao.top/api/wxOpen/getAuthUrlCallBack"
if cfg.Prd { if cfg.Prd {
redirectURI = "http://www.baidu.com/api/wxOpen/getAuthUrlCallBack"
redirectURI = "http://super.advertisement.dengbiao.top/api/wxOpen/getAuthUrlCallBack"
} }
// 对redirectURI进行URL编码 // 对redirectURI进行URL编码
encodedRedirectURI := url.QueryEscape(redirectURI) encodedRedirectURI := url.QueryEscape(redirectURI)


Loading…
Cancel
Save