Преглед на файлове

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

release_toaliyun_real
Stormeye Wu преди 7 години
родител
ревизия
06d748dbd2
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. +2
    -1
      mallinkAdmin/src/main/java/com/iformall/controller/WechatLoginController.java

+ 2
- 1
mallinkAdmin/src/main/java/com/iformall/controller/WechatLoginController.java Целия файл

@@ -74,7 +74,8 @@ public class WechatLoginController extends BaseController {
Cookie unameCookie = new Cookie("uname", info.getUsername());
unameCookie.setMaxAge(60);
response.addCookie(openIdCookie);
response.sendRedirect(request.getContextPath() + "/#/");
log.debug(request.getContextPath() + "/#/");
response.sendRedirect("https://" + request.getContextPath() + "/#/");
} catch (Exception e) {
log.error(e.getMessage());
return new ResultData(ResultData.ERROR, "用户名或者密码错误");


Зареждане…
Отказ
Запис