|
@@ -57,7 +57,8 @@ public class WeChatUtil {
|
|
|
.append("?appid=")
|
|
|
.append(wxPayProperties.getMpAppId())
|
|
|
.append("&redirect_uri=")
|
|
|
- .append(URLEncoder.encode(wxPayProperties.getRedirectUrl(), "UTF-8"))
|
|
|
+// .append(URLEncoder.encode(wxPayProperties.getRedirectUrl(), "UTF-8"))
|
|
|
+ .append(URLEncoder.encode("https://test.baoxianzhanggui.com/fragrance/#/pages/my/wxLogin", "UTF-8"))
|
|
|
.append("&response_type=code&scope=snsapi_userinfo&state=")
|
|
|
.append("STATE")
|
|
|
.append("#wechat_redirect");
|
|
@@ -86,6 +87,7 @@ public class WeChatUtil {
|
|
|
if (null == map.get(ERROR_CODE)) {
|
|
|
return map;
|
|
|
} else {
|
|
|
+ log.error("getAccessToken-获取access_token出错:{}", map);
|
|
|
throw new ServiceException("获取access_token出错");
|
|
|
}
|
|
|
}
|