out.close()

master
chengqf 3 years ago
parent 3e78e01980
commit 119c030e9e

@ -52,9 +52,9 @@ public class ConnectServiceImpl implements ConnectService {
} catch (Exception ex) {
}
String msg = "管理系统";
for(int i=1;i<level+1;i++) {
msg+="→"+NUM_STRS.substring(i,i+1);
String msg = "UDI管理系统";
for(int i=1;i<level;i++) {
msg+="→中继服务"+NUM_STRS.substring(i,i+1)+"正常";
}
if(config!=null&&config.get("paramValue")!=null) {
String result = IDCUtils.post(config.get("paramValue") + "/spssync/common/connect", map);
@ -62,16 +62,17 @@ public class ConnectServiceImpl implements ConnectService {
BaseResponse object = JSON.parseObject(result, BaseResponse.class);
if(object.getCode()!=2000) {
map.replace("level", level +1);
msg+="→"+NUM_STRS.substring(level,level+1);
msg+="→中继服务"+NUM_STRS.substring(level+1,level+2)+"正常";
map.put("msg", msg);
return ResultVOUtils.success(map);
}
return object;
} else {
msg+="→";
msg+="→中继服务"+NUM_STRS.substring(level+1,level+2)+"连接异常";
map.put("failLevel", level+1);
}
} else {
msg+="自助平台运行正常";
map.put("successLevel", level);
}
map.put("msg", msg);

@ -1,8 +1,21 @@
package com.glxp.sale.admin.util;
import cn.hutool.core.io.IoUtil;
import java.io.*;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.RandomAccessFile;
import java.io.Reader;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.charset.Charset;
@ -809,7 +822,7 @@ public class FileUtils {
in.close();
bytes = out.toByteArray();
out.close();
} catch (Exception e1) {
e1.printStackTrace();
} finally {

Loading…
Cancel
Save