Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_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
赵啸非
smart_gov_platform
Commits
0d8dc65c
Commit
0d8dc65c
authored
Mar 24, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加应用主题
parent
1201807c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
8 deletions
+53
-8
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppServiceImpl.java
...m/mortals/xhx/module/app/service/impl/AppServiceImpl.java
+31
-8
base-manager/src/test/java/com/mortals/httpclient/system/system.http
...r/src/test/java/com/mortals/httpclient/system/system.http
+22
-0
No files found.
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppServiceImpl.java
View file @
0d8dc65c
...
@@ -115,22 +115,45 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
...
@@ -115,22 +115,45 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
String
domainUrl
=
""
;
String
domainUrl
=
""
;
if
(!
ObjectUtils
.
isEmpty
(
params
.
getServerName
())
&&
Validator
.
isIpv4
(
params
.
getServerName
()))
{
if
(!
ObjectUtils
.
isEmpty
(
params
.
getServerName
())
&&
Validator
.
isIpv4
(
params
.
getServerName
()))
{
domainUrl
=
UrlBuilder
.
ofHttp
(
params
.
getServerName
()).
setPort
(
params
.
getServerPort
()
>
0
?
params
.
getServerPort
()
:
11078
).
build
();
domainUrl
=
UrlBuilder
.
ofHttp
(
params
.
getServerName
()).
setPort
(
params
.
getServerPort
()
>
0
?
params
.
getServerPort
()
:
11078
).
build
();
domainUrl
=
StrUtil
.
sub
(
domainUrl
,
0
,
domainUrl
.
length
()
-
1
);
}
else
{
// domainUrl = GlobalSysInfo.getParamValue(Constant.PARAM_SERVER_HTTP_URL, "http://192.168.0.98:11078");
domainUrl
=
""
;
}
}
if
(!
ObjectUtils
.
isEmpty
(
siteEntity
))
{
if
(!
ObjectUtils
.
isEmpty
(
siteEntity
))
{
//请求地址 http://domian/app/siteCode/appcode/html
//请求地址 http://domian/app/siteCode/appcode/html
item
.
setCustUrl
(
UrlBuilder
.
ofHttp
(
params
.
getServerName
()).
setPort
(
params
.
getServerPort
()
>
0
?
params
.
getServerPort
()
:
11078
)
if
(!
ObjectUtils
.
isEmpty
(
domainUrl
)){
item
.
setCustUrl
(
UrlBuilder
.
ofHttp
(
domainUrl
)
.
addPath
(
CUSTAPP_ROOT_PATH
)
.
addPath
(
CUSTAPP_ROOT_PATH
)
.
addPath
(
siteEntity
.
getSiteCode
())
.
addPath
(
siteEntity
.
getSiteCode
())
.
addPath
(
item
.
getAppCode
())
.
addPath
(
item
.
getAppCode
())
.
addPath
(
item
.
getVersion
().
toString
())
.
addPath
(
item
.
getVersion
().
toString
())
.
build
());
.
build
());
}
else
{
item
.
setCustUrl
(
UrlBuilder
.
of
(
domainUrl
)
.
addPath
(
CUSTAPP_ROOT_PATH
)
.
addPath
(
siteEntity
.
getSiteCode
())
.
addPath
(
item
.
getAppCode
())
.
addPath
(
item
.
getVersion
().
toString
())
.
build
());
}
}
else
{
}
else
{
item
.
setCustUrl
(
""
);
item
.
setCustUrl
(
""
);
}
}
//构建图标地址
//构建图标地址
item
.
setAppIconUrl
(
UrlBuilder
.
ofHttp
(
params
.
getServerName
()).
setPort
(
params
.
getServerPort
()
>
0
?
params
.
getServerPort
()
:
11078
)
if
(!
ObjectUtils
.
isEmpty
(
domainUrl
)){
item
.
setAppIconUrl
(
UrlBuilder
.
ofHttp
(
domainUrl
)
.
addPath
(
item
.
getAppIconPath
()).
build
());
.
addPath
(
item
.
getAppIconPath
()).
build
());
}
else
{
item
.
setAppIconUrl
(
UrlBuilder
.
of
(
domainUrl
)
.
addPath
(
item
.
getAppIconPath
()).
build
());
}
});
});
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
}
}
...
...
base-manager/src/test/java/com/mortals/httpclient/system/system.http
View file @
0d8dc65c
...
@@ -53,6 +53,28 @@ Content-Type: application/json
...
@@ -53,6 +53,28 @@ Content-Type: application/json
"url":"http://172.15.28.113:8900"
"url":"http://172.15.28.113:8900"
}
}
###参数信息更新与保存
POST {{baseUrl}}/param/save
Authorization: {{authToken}}
Content-Type: application/json
{
"name":"upd19g",
"firstOrganize":"2pdzk6",
"secondOrganize":"4glkoo",
"paramKey":"isynj7",
"paramValue":"t09yd7",
"validStatus":1,
"modStatus":4,
"displayType":0,
"remark":"z5lbzt",
"createUserName":"75on7u"
}
> {%
client.global.set("Param_id", JSON.parse(response.body).data.id);
%}
###test Cookie
###test Cookie
POST {{baseUrl}}/test/testCookie
POST {{baseUrl}}/test/testCookie
Content-Type: application/json
Content-Type: application/json
...
...
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