Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
46731f23
Commit
46731f23
authored
Jul 05, 2023
by
Zheng Jie
Browse files
移除 yauaa 获取UA信息,采用hutoolUA工具类-UserAgentUtil 获取浏览器信息:
https://github.com/elunez/eladmin-mp/issues/5
parent
189f671e
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-common/src/main/java/me/zhengjie/utils/StringUtils.java
View file @
46731f23
...
...
@@ -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"
,
""
);
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment