Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fill-system
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
廖旭伟
fill-system
Commits
54f09aa0
Commit
54f09aa0
authored
Feb 19, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加应用白名单接口
parent
edecf572
Pipeline
#2482
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
fill-manager/pom.xml
fill-manager/pom.xml
+0
-2
fill-manager/src/main/java/com/mortals/xhx/module/home/web/HomeController.java
.../java/com/mortals/xhx/module/home/web/HomeController.java
+5
-6
No files found.
fill-manager/pom.xml
View file @
54f09aa0
...
@@ -67,8 +67,6 @@
...
@@ -67,8 +67,6 @@
<profiles.log.path>
/mortals/app/logs
</profiles.log.path>
<profiles.log.path>
/mortals/app/logs
</profiles.log.path>
</properties>
</properties>
</profile>
</profile>
<profile>
<profile>
<id>
yibin
</id>
<id>
yibin
</id>
<properties>
<properties>
...
...
fill-manager/src/main/java/com/mortals/xhx/module/home/web/HomeController.java
View file @
54f09aa0
...
@@ -181,7 +181,6 @@ public class HomeController extends BaseJsonBodyController {
...
@@ -181,7 +181,6 @@ public class HomeController extends BaseJsonBodyController {
@PostMapping
({
"notice/list"
})
@PostMapping
({
"notice/list"
})
@UnAuth
@UnAuth
public
String
noteList
(
@RequestBody
HomeQueryPdu
queryPdu
)
{
public
String
noteList
(
@RequestBody
HomeQueryPdu
queryPdu
)
{
String
url
=
GlobalSysInfo
.
getParamValue
(
Constant
.
PARAMS_NOTICE_URL
,
"http://192.168.0.98:8090/api/"
);
String
url
=
GlobalSysInfo
.
getParamValue
(
Constant
.
PARAMS_NOTICE_URL
,
"http://192.168.0.98:8090/api/"
);
UrlBuilder
domain
=
UrlBuilder
.
of
(
url
);
UrlBuilder
domain
=
UrlBuilder
.
of
(
url
);
Rest
<
Object
>
ret
=
new
Rest
();
Rest
<
Object
>
ret
=
new
Rest
();
...
@@ -190,11 +189,11 @@ public class HomeController extends BaseJsonBodyController {
...
@@ -190,11 +189,11 @@ public class HomeController extends BaseJsonBodyController {
int
code
=
VALUE_RESULT_SUCCESS
;
int
code
=
VALUE_RESULT_SUCCESS
;
try
{
try
{
Map
<
String
,
String
>
params
=
new
HashMap
<>();
Map
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"siteid"
,
queryPdu
.
getSiteId
()
.
toString
()
);
params
.
put
(
"siteid"
,
queryPdu
.
getSiteId
()
+
""
);
params
.
put
(
"title"
,
queryPdu
.
getTitle
());
params
.
put
(
"title"
,
queryPdu
.
getTitle
());
params
.
put
(
"type"
,
queryPdu
.
getType
()
.
toString
()
);
params
.
put
(
"type"
,
queryPdu
.
getType
()
+
""
);
params
.
put
(
"page"
,
queryPdu
.
getPage
()
.
toString
()
);
params
.
put
(
"page"
,
queryPdu
.
getPage
()
+
""
);
params
.
put
(
"size"
,
queryPdu
.
getSize
()
.
toString
()
);
params
.
put
(
"size"
,
queryPdu
.
getSize
()
+
""
);
UrlBuilder
urlBuilder
=
domain
.
addPath
(
"news"
).
addPath
(
"newsList"
);
UrlBuilder
urlBuilder
=
domain
.
addPath
(
"news"
).
addPath
(
"newsList"
);
String
response
=
HttpUtil
.
doGet
(
urlBuilder
.
toString
(),
params
);
String
response
=
HttpUtil
.
doGet
(
urlBuilder
.
toString
(),
params
);
this
.
recordSysLog
(
this
.
request
,
busiDesc
+
" 【成功】"
);
this
.
recordSysLog
(
this
.
request
,
busiDesc
+
" 【成功】"
);
...
@@ -351,7 +350,7 @@ public class HomeController extends BaseJsonBodyController {
...
@@ -351,7 +350,7 @@ public class HomeController extends BaseJsonBodyController {
@GetMapping
({
"app/list"
})
@GetMapping
({
"app/list"
})
@UnAuth
@UnAuth
public
String
appList
(
Long
siteId
)
{
public
String
appList
(
Long
siteId
)
{
String
appWhiteStr
=
GlobalSysInfo
.
getParamValue
(
Constant
.
PARAMS_WHITE_APP_LIST
,
"中心简介,办事指南,意见建议,
中心简介
"
);
String
appWhiteStr
=
GlobalSysInfo
.
getParamValue
(
Constant
.
PARAMS_WHITE_APP_LIST
,
"中心简介,办事指南,意见建议,
通知公告
"
);
Set
<
String
>
appWhiteSet
=
StrUtil
.
split
(
appWhiteStr
,
","
).
stream
().
collect
(
Collectors
.
toSet
());
Set
<
String
>
appWhiteSet
=
StrUtil
.
split
(
appWhiteStr
,
","
).
stream
().
collect
(
Collectors
.
toSet
());
Rest
<
List
<
AppPdu
>>
ret
=
new
Rest
();
Rest
<
List
<
AppPdu
>>
ret
=
new
Rest
();
List
<
AppPdu
>
collect
=
new
ArrayList
<>();
List
<
AppPdu
>
collect
=
new
ArrayList
<>();
...
...
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