| @@ -140,7 +140,8 @@ public class WechatLoginController extends BaseController { | |||||
| } else { | } else { | ||||
| // 跳转登录页面 | // 跳转登录页面 | ||||
| try { | try { | ||||
| response.sendRedirect("https://" + host + "/#/login?errcode=您的微信未绑定"); | |||||
| String errCode = URLEncoder.encode("您的微信未绑定", "utf-8"); | |||||
| response.sendRedirect("https://" + host + "/#/login?errcode="+errCode); | |||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| log.error(e.getMessage()); | log.error(e.getMessage()); | ||||
| } | } | ||||
| @@ -229,7 +230,8 @@ public class WechatLoginController extends BaseController { | |||||
| response.sendRedirect("https://" + host + "/#/layout"); | response.sendRedirect("https://" + host + "/#/layout"); | ||||
| } else { | } else { | ||||
| log.debug("https://" + host + "/#/layout?errcode=绑定失败"); | log.debug("https://" + host + "/#/layout?errcode=绑定失败"); | ||||
| response.sendRedirect("https://" + host + "/#/layout?errcode=绑定失败"); | |||||
| String errCode = URLEncoder.encode("绑定失败", "utf-8"); | |||||
| response.sendRedirect("https://" + host + "/#/layout?errcode="+errCode); | |||||
| } | } | ||||
| } catch (WxErrorException e) { | } catch (WxErrorException e) { | ||||
| log.error(e.getMessage()); | log.error(e.getMessage()); | ||||