优化客户端服务端版本检测的提示

This commit is contained in:
seagull 2020-02-24 16:36:42 +08:00
parent e07346c5de
commit 5fcf70d790
1 changed files with 6 additions and 2 deletions

View File

@ -368,7 +368,7 @@ public class HttpImpl {
public static boolean checkHostNet() {
log.info("检查客户端配置中,请稍后......");
Properties properties = SysConfig.getConfiguration();
String version=properties.getProperty("client.verison");
String version="Version "+properties.getProperty("client.verison");
String webip=properties.getProperty("server.web.ip");
Integer webport=Integer.valueOf(properties.getProperty("server.web.port"));
try {
@ -376,7 +376,11 @@ public class HttpImpl {
if(version.equals(result)){
log.info("客户端访问Web端配置: {}:{} 检测通过......",webip,webport);
}else{
log.warn("客户端版本:{} 服务端版本:{} 客户端与服务端版本不一致,有可能会导致未知问题,请检查...",version,result);
if(result.startsWith("Version")){
log.warn("客户端版本:{} 服务端版本:{} 客户端与服务端版本不一致,有可能会导致未知问题,请检查...",version,result);
}else{
log.error("请检查客户端配置,获取服务端版本信息出现异常!");
}
}
} catch (Exception e) {