From 19e6057d3797b6fd6770ed5a98ddaef0b86a4c47 Mon Sep 17 00:00:00 2001 From: EricsHu <hrr145632> Date: 星期五, 01 九月 2023 11:40:37 +0800 Subject: [PATCH] 退出登录 --- src/main/java/com/qxueyou/scc/sys/action/LoginController.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/qxueyou/scc/sys/action/LoginController.java b/src/main/java/com/qxueyou/scc/sys/action/LoginController.java index be0ded6..d0d7fb6 100644 --- a/src/main/java/com/qxueyou/scc/sys/action/LoginController.java +++ b/src/main/java/com/qxueyou/scc/sys/action/LoginController.java @@ -419,6 +419,9 @@ }else if("portal".equals(logType)){ hql = "from User where deleteFlag is false and email = ?"; params = CollectionUtils.newList(account); + }else if("zhyly".equals(logType)){ + hql = "from User where deleteFlag is false and mobilePhone = ?"; + params = CollectionUtils.newList(account); }else{ if(StringUtils.isEmpty(password)) { return new Result(false, "鐢ㄦ埛瀵嗙爜涓嶈兘涓虹┖"); @@ -491,7 +494,7 @@ // 瀛樺埌redis redisTemplate.opsForValue().set(UserInfoWrapper.SESSION_USER_INFO_KEY, wrapper); request.getSession().setAttribute(UserInfoWrapper.SESSION_USER_INFO_KEY, wrapper); - if ("study".equals(logType) || "portal".equals(logType)) { + if ("study".equals(logType) || "portal".equals(logType) || "zhyly".equals(logType)) { /*if (StringUtils.isEmpty(ClientUtils.getClassId()) && user.getRoles() == null) { return new Result(false, "璇ョ敤鎴锋湭鍔犲叆浠讳綍鐝骇鎴栨湭婵�娲伙紝璇疯仈绯荤彮涓讳换"); }*/ @@ -566,7 +569,7 @@ @RequestMapping(value = "release", method = RequestMethod.GET) public String release(HttpServletRequest httpRequest, HttpServletResponse response) { doRelease(httpRequest, response); - return "redirect:/web/admin/index.html#login"; + return "閫�鍑烘垚鍔�"; } /** -- Gitblit v1.8.0