Browse Source

fix: 加日志

wrj 11 months ago
parent
commit
f69d0c5d99

+ 3 - 1
nightFragrance-massage/src/main/java/com/ylx/massage/utils/WeChatUtil.java

@@ -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出错");
         }
     }