Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
bbcb9ba4
Commit
bbcb9ba4
authored
Sep 25, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新资源部署
parent
40691de6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
device-manager/src/main/java/com/mortals/xhx/busiz/web/DeviceApiController.java
...n/java/com/mortals/xhx/busiz/web/DeviceApiController.java
+13
-2
device-manager/src/test/java/com/mortals/httpclient/http-client.env.json
...src/test/java/com/mortals/httpclient/http-client.env.json
+5
-0
No files found.
device-manager/src/main/java/com/mortals/xhx/busiz/web/DeviceApiController.java
View file @
bbcb9ba4
...
...
@@ -216,7 +216,7 @@ public class DeviceApiController {
URI
uri
=
new
URI
(
platformEntity
.
getSendUrl
());
int
port
=
uri
.
getPort
();
if
(
port
!=
-
1
&&
!
ObjectUtils
.
isEmpty
(
serverName
)
&&
Validator
.
isIpv4
(
serverName
))
{
String
serverUrl
=
UrlBuilder
.
of
().
setScheme
(
scheme
).
setHost
(
serverName
).
setPort
(
serverPort
>
0
?
serverP
ort
:
11078
).
build
();
String
serverUrl
=
UrlBuilder
.
of
().
setScheme
(
scheme
).
setHost
(
serverName
).
setPort
(
port
>
0
?
p
ort
:
11078
).
build
();
//String serverUrl = UrlBuilder.ofHttp(serverName).setPort(port).build();
serverInfo
.
setServerUrl
(
serverUrl
);
}
else
{
...
...
@@ -466,7 +466,18 @@ public class DeviceApiController {
serverInfo
.
setScheme
(
scheme
);
// buildHomeUrl(deviceEntity, productEntity, serverInfo, serverName, serverPort);
buildHomeUrlBySite
(
deviceEntity
,
productEntity
,
serverInfo
,
serverName
,
serverPort
);
URI
uri
=
new
URI
(
platformEntity
.
getSendUrl
());
int
port
=
uri
.
getPort
();
if
(
port
!=
-
1
&&
!
ObjectUtils
.
isEmpty
(
serverName
)
&&
Validator
.
isIpv4
(
serverName
))
{
String
serverUrl
=
UrlBuilder
.
of
().
setScheme
(
scheme
).
setHost
(
serverName
).
setPort
(
port
>
0
?
port
:
11078
).
build
();
//String serverUrl = UrlBuilder.ofHttp(serverName).setPort(port).build();
serverInfo
.
setServerUrl
(
serverUrl
);
}
else
{
serverInfo
.
setServerUrl
(
platformEntity
.
getSendUrl
());
}
//serverInfo.setServerUrl(platformEntity.getSendUrl());
//String phpUrl=GlobalSysInfo.getParamValue(PARAM_SERVER_PHP_HTTP_URL, "http://10.12.185.213:8090");
//serverInfo.setServerUrl(phpUrl);
registerResp
.
setServiceInfo
(
serverInfo
);
...
...
device-manager/src/test/java/com/mortals/httpclient/http-client.env.json
View file @
bbcb9ba4
...
...
@@ -17,6 +17,11 @@
"baseLogin"
:
"https://192.168.0.98:31078/base"
},
"test-https-1"
:
{
"baseUrl"
:
"https://192.168.0.98:31091/m"
,
"baseLogin"
:
"https://192.168.0.98:31078/base"
},
"test1"
:
{
"baseUrl"
:
"http://8.136.255.30:11078/m"
,
"baseLogin"
:
"http://192.168.0.98:11078/base"
...
...
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