Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fulixin
dsk-operate-sys-cscec
Commits
7a28eb65
Commit
7a28eb65
authored
Oct 26, 2023
by
tanyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化登录问题
parent
6ff0a5bb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
AddressUtils.java
...n/src/main/java/com/dsk/common/utils/ip/AddressUtils.java
+14
-8
No files found.
dsk-common/src/main/java/com/dsk/common/utils/ip/AddressUtils.java
View file @
7a28eb65
...
...
@@ -20,6 +20,7 @@ public class AddressUtils {
public
static
final
String
UNKNOWN
=
"XX XX"
;
public
static
String
getRealAddressByIP
(
String
ip
)
{
try
{
if
(
StringUtils
.
isBlank
(
ip
))
{
return
UNKNOWN
;
}
...
...
@@ -29,5 +30,10 @@ public class AddressUtils {
return
"内网IP"
;
}
return
RegionUtils
.
getCityInfo
(
ip
);
}
catch
(
Exception
e
)
{
log
.
error
(
"IP地址异常 "
+
ip
);
e
.
printStackTrace
();
}
return
null
;
}
}
Write
Preview
Markdown
is supported
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