out.close()

master
chengqf 3 years ago
parent 3e78e01980
commit 119c030e9e

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

@ -1,8 +1,21 @@
package com.glxp.sale.admin.util; package com.glxp.sale.admin.util;
import cn.hutool.core.io.IoUtil; import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.*; 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.MalformedURLException;
import java.net.URL; import java.net.URL;
import java.nio.charset.Charset; import java.nio.charset.Charset;
@ -809,7 +822,7 @@ public class FileUtils {
in.close(); in.close();
bytes = out.toByteArray(); bytes = out.toByteArray();
out.close();
} catch (Exception e1) { } catch (Exception e1) {
e1.printStackTrace(); e1.printStackTrace();
} finally { } finally {

Loading…
Cancel
Save