Explorar el Código

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

release_toaliyun_real
Stormeye Wu hace 7 años
padre
commit
06d748dbd2
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      mallinkAdmin/src/main/java/com/iformall/controller/WechatLoginController.java

+ 2
- 1
mallinkAdmin/src/main/java/com/iformall/controller/WechatLoginController.java Ver fichero

@@ -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, "用户名或者密码错误");


Cargando…
Cancelar
Guardar