TRX преди 1 година
родител
ревизия
1443e20d1b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      OneCardIotServer/src/main/java/com/zhongshu/iot/server/core/service/device/DeviceInfoService.java

+ 1 - 1
OneCardIotServer/src/main/java/com/zhongshu/iot/server/core/service/device/DeviceInfoService.java

@@ -486,7 +486,7 @@ public class DeviceInfoService {
             BeanUtils.copyProperties(_model, deviceInfoModel);
 
             // 连接账号信息
-            ResultContent<GateWayUserInfoModel> resultContent = gateWayUserInfoService.updateBindNumber(deviceInfo.getMqttUserName());
+            ResultContent<GateWayUserInfoModel> resultContent = gateWayUserInfoService.getUserByUserName(deviceInfo.getMqttUserName());
             if (resultContent.isSuccess()) {
                 GateWayUserInfoModel gateWayUserInfoModel = resultContent.getContent();
                 if (ObjectUtils.isNotEmpty(gateWayUserInfoModel)) {