Procházet zdrojové kódy

[微信第三方登录][修改]:errCode转码

release_toaliyun_real
Stormeye Wu před 7 roky
rodič
revize
5607e17927
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. +4
    -2
      mallinkAdmin/src/main/java/com/iformall/controller/WechatLoginController.java

+ 4
- 2
mallinkAdmin/src/main/java/com/iformall/controller/WechatLoginController.java Zobrazit soubor

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


Načítá se…
Zrušit
Uložit