Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
ocrCloudPlatForm
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ocr-cloud-platform
ocrCloudPlatForm
Commits
77135644
Commit
77135644
authored
Apr 25, 2024
by
黄明步
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
36eacfa3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/main/java/com/gxmailu/ocrCloudPlatform/service/impl/ServerInfoServiceImpl.java
+10
-0
No files found.
src/main/java/com/gxmailu/ocrCloudPlatform/service/impl/ServerInfoServiceImpl.java
View file @
77135644
...
...
@@ -69,6 +69,12 @@ public class ServerInfoServiceImpl implements ServerInfoService {
try
{
IPage
<
ServerInfo
>
result
=
this
.
serverInfoMapper
.
selectPage
(
page
,
queryWrapper
);
// 对147.2.开头的ip进行特殊处理,设置是否接入取反
result
.
getRecords
().
forEach
(
serverInfo
->
{
if
(
serverInfo
.
getIp
().
startsWith
(
"147.2."
))
{
serverInfo
.
setAccessService
(!
serverInfo
.
getAccessService
());
}
});
if
(!
ListUtils
.
isEmpty
(
result
.
getRecords
()))
{
return
new
Result
(
true
,
Result
.
SUCCESS
,
"查询分页成功"
,
result
.
getTotal
(),
result
.
getRecords
());
}
...
...
@@ -199,6 +205,10 @@ public class ServerInfoServiceImpl implements ServerInfoService {
@Override
public
Result
updateServer
(
ServerInfo
serverInfo
)
{
try
{
serverInfo
=
serverInfoMapper
.
selectByPrimaryKey
(
serverInfo
.
getServerId
());
if
(
serverInfo
.
getIp
().
startsWith
(
"147.2."
))
{
serverInfo
.
setAccessService
(!
serverInfo
.
getAccessService
());
}
if
(
StringUtils
.
isNotEmpty
(
serverInfo
.
getPassword
()))
{
//对密码进行加密
serverInfo
.
setPassword
(
AES
.
encrypt
(
serverInfo
.
getPassword
(),
aesKey
));
...
...
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