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
17862e33
Commit
17862e33
authored
Mar 24, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加设备相关
parent
e0ee7bcc
Pipeline
#2534
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
fill-manager/src/main/java/com/mortals/xhx/module/home/web/HomeController.java
.../java/com/mortals/xhx/module/home/web/HomeController.java
+14
-1
No files found.
fill-manager/src/main/java/com/mortals/xhx/module/home/web/HomeController.java
View file @
17862e33
...
...
@@ -355,6 +355,11 @@ public class HomeController extends BaseJsonBodyController {
@GetMapping
({
"app/list"
})
@UnAuth
public
String
appList
(
Long
siteId
)
{
String
serverName
=
request
.
getHeader
(
"server-name"
);
Integer
serverPort
=
DataUtil
.
converStr2Int
(
request
.
getHeader
(
"server-port"
),
0
);
log
.
info
(
"host:"
,
request
.
getRemoteHost
());
log
.
info
(
"【应用请求】【请求体】-->serverName{} ,port:{}"
,
serverName
,
serverPort
);
String
appWhiteStr
=
GlobalSysInfo
.
getParamValue
(
Constant
.
PARAMS_WHITE_APP_LIST
,
"中心简介,办事指南,意见建议,通知公告"
);
Set
<
String
>
appWhiteSet
=
StrUtil
.
split
(
appWhiteStr
,
","
).
stream
().
collect
(
Collectors
.
toSet
());
Rest
<
List
<
AppPdu
>>
ret
=
new
Rest
();
...
...
@@ -365,8 +370,16 @@ public class HomeController extends BaseJsonBodyController {
appPdu
.
setSiteId
(
siteId
);
appPdu
.
setSize
(-
1
);
Rest
<
RespData
<
List
<
AppPdu
>>>
appRest
=
appFeign
.
list
(
appPdu
);
log
.
info
(
"appRest:"
+
JSON
.
toJSONString
(
appRest
));
if
(
appRest
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
())
{
collect
=
appRest
.
getData
().
getData
().
stream
().
filter
(
f
->
appWhiteSet
.
contains
(
f
.
getAppName
())).
collect
(
Collectors
.
toList
());
collect
=
appRest
.
getData
().
getData
().
stream
().
filter
(
f
->
appWhiteSet
.
contains
(
f
.
getAppName
()))
.
peek
(
item
->{
log
.
info
(
item
.
getCustUrl
());
log
.
info
(
item
.
getAppIconPath
());
}).
collect
(
Collectors
.
toList
());
}
}
catch
(
Exception
e
)
{
code
=
VALUE_RESULT_FAILURE
;
...
...
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