From 1b1941519b4195db25b6b89d8393cfb946c09fca Mon Sep 17 00:00:00 2001 From: dengbiao Date: Tue, 20 Aug 2024 22:07:23 +0800 Subject: [PATCH] 1 --- app/hdl/hdl_wx_open.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/hdl/hdl_wx_open.go b/app/hdl/hdl_wx_open.go index 9ee64be..f4cf4ce 100644 --- a/app/hdl/hdl_wx_open.go +++ b/app/hdl/hdl_wx_open.go @@ -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)