parent
bd8e763594
commit
a48af6b9d9
|
@ -108,8 +108,8 @@ public class DisposeDeviceManagerImpl implements DisposeDeviceManager {
|
|||
Field fdDest = destDev.getClass().getDeclaredField(fdSrc.getName());
|
||||
fdDest.setAccessible(true);
|
||||
if (!obj.equals(fdDest.get(destDev))) {
|
||||
log.debug("Upgrade field [{}] value form [{}] to [{}]",
|
||||
fdSrc.getName(), fdDest.get(destDev), obj);
|
||||
log.debug("Upgrade field [{}] value form [{}] to [{}]", fdSrc.getName(), fdDest.get(destDev),
|
||||
obj);
|
||||
fdDest.set(destDev, obj);
|
||||
}
|
||||
fdDest.setAccessible(false);
|
||||
|
@ -151,6 +151,12 @@ public class DisposeDeviceManagerImpl implements DisposeDeviceManager {
|
|||
return new MulReturnType<>(ErrorCode.ERR_NOSUCHDEVICE, -1L);
|
||||
}
|
||||
|
||||
// 过滤不允许修改的值
|
||||
dev.setUrlPath(null);
|
||||
dev.setUserName(null);
|
||||
dev.setUrlType(null);
|
||||
dev.setPassword(null);
|
||||
|
||||
// 更新值
|
||||
upgradeDisposeDeviceProperties(tDev, dev);
|
||||
|
||||
|
|
Loading…
Reference in New Issue