Commit 590d8cf3 authored by 喻春霖's avatar 喻春霖

fixed

parent 9dbeb922
...@@ -91,9 +91,10 @@ public class AuthController { ...@@ -91,9 +91,10 @@ public class AuthController {
String loginType = request.getParameter("login_type"); String loginType = request.getParameter("login_type");
OauthType oauthType = OauthType.getValue(loginType); OauthType oauthType = OauthType.getValue(loginType);
if(StringUtils.isNotEmpty(loginType) && oauthType !=null) { if(StringUtils.isNotEmpty(loginType) && oauthType !=null) {
if (StringUtils.isNotEmpty(returnUrl) && returnUrl.contains("readinglab")){ if (StringUtils.isNotEmpty(returnUrl) && (returnUrl.contains("readinglab") || returnUrl.contains("read.etextbook.cn"))){
// 阅览室日志分离 // 阅览室日志分离
ClientItem item = clientItemMap.get("readingroomClientId"); ClientItem item = clientItemMap.get("readingroomClientId");
item.setClientId("readingroomClientId");
authLog.setAuthSource(item.getClientName()); authLog.setAuthSource(item.getClientName());
} }
modelAndView.addObject("loginType",loginType); modelAndView.addObject("loginType",loginType);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment