dengbiao 4 mesi fa
parent
commit
1b1941519b
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      app/hdl/hdl_wx_open.go

+ 2
- 2
app/hdl/hdl_wx_open.go Vedi File

@@ -150,9 +150,9 @@ func GetPreAuthCode(c *gin.Context) {
}

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


Caricamento…
Annulla
Salva