Commit 212218c7c4e0fa334119c0b420c52d5f64cb3f0f
Committed by
GitHub
Merge pull request #1057 from lunasaw/dev-wvp-0906
fix set password
Showing
1 changed file
with
4 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/service/impl/DeviceServiceImpl.java
| @@ -511,6 +511,10 @@ public class DeviceServiceImpl implements IDeviceService { | @@ -511,6 +511,10 @@ public class DeviceServiceImpl implements IDeviceService { | ||
| 511 | if (!ObjectUtils.isEmpty(device.getSdpIp())) { | 511 | if (!ObjectUtils.isEmpty(device.getSdpIp())) { |
| 512 | deviceInStore.setSdpIp(device.getSdpIp()); | 512 | deviceInStore.setSdpIp(device.getSdpIp()); |
| 513 | } | 513 | } |
| 514 | + if (!ObjectUtils.isEmpty(device.getPassword())) { | ||
| 515 | + deviceInStore.setPassword(device.getPassword()); | ||
| 516 | + } | ||
| 517 | + | ||
| 514 | 518 | ||
| 515 | // 目录订阅相关的信息 | 519 | // 目录订阅相关的信息 |
| 516 | if (device.getSubscribeCycleForCatalog() > 0) { | 520 | if (device.getSubscribeCycleForCatalog() > 0) { |