提交 b70552b7 authored 作者: zhoushaopan's avatar zhoushaopan

fix(读写机模块): 修改ip索引越界

修改ip索引越界
上级 9d793c48
......@@ -39,6 +39,7 @@ public class ReadMachineIpServiceImpl implements ReadMachineIpService {
System.out.println("e = " + e);
}
log.info("读写机ip修改成功");
machineIp.setOldIp(machineIp.getIp());
return readMachineIpDao.save(machineIp);
}
......
......@@ -342,10 +342,10 @@ public class ReadUtils {
// rip.ip="192.168.1.100".getBytes();
// rip.mask="255.255.255.0".getBytes();
// rip.gateway="192.168.1.1".getBytes();
rip.ip=ip.getBytes("US-ASCII");
rip.mask=mask.getBytes("US-ASCII");
rip.gateway=gateway.getBytes("US-ASCII");
// rip.gateway="192.168.1.1".getBytes();"US-ASCII"
rip.ip=ip.getBytes();
rip.mask=mask.getBytes();
rip.gateway=gateway.getBytes();
//*/
READER_ERR er=Jreader.ParamSet(Mtr_Param.MTR_PARAM_READER_IP, rip);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论