dangsn
2024-06-14 df2181e8f201f48c57e29cf247b81e85189f7f73
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/LoginController.java
@@ -17,7 +17,6 @@
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@@ -27,7 +26,10 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.security.Principal;
import java.util.*;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
/**
 * 登录控制器
@@ -256,6 +258,14 @@
               clientInfo.setRequestType("browser");
            }
         }
         Locale loc = Locale.getDefault();
         clientInfo.setCountry(loc.getCountry());
         clientInfo.setLanguage(loc.toLanguageTag());
         Map<String,String> map = System.getenv();
         clientInfo.setMachine(map.get("COMPUTERNAME"));
         clientInfo.setOsUser(map.get("USERNAME"));
      }
   }