Просмотр исходного кода

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

release_toaliyun_real
Stormeye Wu 7 лет назад
Родитель
Сommit
5607e17927
1 измененных файлов: 4 добавлений и 2 удалений
  1. +4
    -2
      mallinkAdmin/src/main/java/com/iformall/controller/WechatLoginController.java

+ 4
- 2
mallinkAdmin/src/main/java/com/iformall/controller/WechatLoginController.java Просмотреть файл

@@ -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());


Загрузка…
Отмена
Сохранить