Commit 46731f23 authored by Zheng Jie's avatar Zheng Jie
Browse files

移除 yauaa 获取UA信息,采用hutoolUA工具类-UserAgentUtil 获取浏览器信息:https://github.com/elunez/eladmin-mp/issues/5

parent 189f671e
......@@ -171,7 +171,8 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
public static String getBrowser(HttpServletRequest request) {
UserAgent ua = UserAgentUtil.parse(request.getHeader("User-Agent"));
return ua.getBrowser().toString() + " " + ua.getVersion();
String browser = ua.getBrowser().toString() + " " + ua.getVersion();
return browser.replace(".0.0.0","");
}
/**
......
Supports Markdown
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