Bläddra i källkod

添加debug日志

半月无霜 4 år sedan
förälder
incheckning
d25db369b1

+ 6 - 2
ymall/src/main/java/com/liangjian11/ymall/controller/common/WechatController.java

@@ -158,10 +158,14 @@ public class WechatController {
       response.addCookie(cookie1);
       if (identity.equals(0)) {  //用户授权
         if (StringUtils.isBlank(userAccount.getNickname())) {
-          response.sendRedirect(redirectPathSource.getRedirectPath(redirectCode, userAccount, id));
+		  String url = redirectPathSource.getRedirectPath(redirectCode, userAccount, id);
+		  logger.debug("将跳转至:"+url);
+          response.sendRedirect(url);
           return;
         }
-        response.sendRedirect(redirectPathSource.getRedirectPath(redirectCode, null, ""));
+	    String url = redirectPathSource.getRedirectPath(redirectCode, null, "");
+	    logger.debug("将跳转至:"+url);
+        response.sendRedirect(url);
         return;
       }
       return;