Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
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
YZG
yzg-util
Commits
f13538e8
Commit
f13538e8
authored
Jan 05, 2023
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改地址
parent
edc462c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
UrlHelper.java
.../src/main/java/com/yanzuoguang/util/helper/UrlHelper.java
+4
-4
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/UrlHelper.java
View file @
f13538e8
...
...
@@ -198,14 +198,14 @@ public class UrlHelper {
*/
public
static
String
getFullUrl
(
String
simpleUrl
,
String
simpleBaseUrl
,
String
defBaseUrl
)
{
// 获取请求地址
String
tbd
Url
=
StringHelper
.
getFirst
(
simpleBaseUrl
,
defBaseUrl
);
String
base
Url
=
StringHelper
.
getFirst
(
simpleBaseUrl
,
defBaseUrl
);
// 获取全路径
String
toSimpleFullUrl
=
getFUllUrl
(
tbd
Url
,
simpleUrl
);
String
toSimpleFullUrl
=
getFUllUrl
(
base
Url
,
simpleUrl
);
// 最终地址处理
String
toSimpleUrl
;
if
(!
StringHelper
.
compare
(
simpleBaseUrl
,
simpl
eUrl
)
&&
toSimpleFullUrl
.
startsWith
(
defBaseUrl
))
{
if
(!
StringHelper
.
compare
(
simpleBaseUrl
,
defBas
eUrl
)
&&
toSimpleFullUrl
.
startsWith
(
defBaseUrl
))
{
String
rightUrl
=
StringHelper
.
trimStart
(
toSimpleFullUrl
,
defBaseUrl
);
toSimpleUrl
=
getFUllUrl
(
tbd
Url
,
rightUrl
);
toSimpleUrl
=
getFUllUrl
(
base
Url
,
rightUrl
);
}
else
{
toSimpleUrl
=
toSimpleFullUrl
;
}
...
...
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