Commit fd6a3ee3 by 黄明步

.

parent 82cd35e6
......@@ -195,9 +195,9 @@ public class ServerInfoServiceImpl implements ServerInfoService {
@Override
public Result updateServer(ServerInfo serverInfo) {
try {
serverInfo = serverInfoMapper.selectByPrimaryKey(serverInfo.getServerId());
ServerInfo dbServerInfo = serverInfoMapper.selectByPrimaryKey(serverInfo.getServerId());
// 暂时国产机器取反处理
if (serverInfo.getIp().startsWith("147.2.")) {
if (dbServerInfo.getIp().startsWith("147.2.")) {
serverInfo.setAccessService(!serverInfo.getAccessService());
}
if (StringUtils.isNotEmpty(serverInfo.getPassword())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment