18339543638 1 anno fa
parent
commit
622280651a

+ 3 - 0
nb-service/iot-service/src/main/java/com/nb/aliyun/controller/IotController.java

@@ -67,6 +67,9 @@ public class IotController {
         if(ObjectUtil.isNull(source.getRunState())){
             throw new CustomException("[runState]设备运行状态不能为空");
         }
+        if(StrUtil.isNotBlank(source.getUserId())){
+            source.setUserId("1000");
+        }
         source.setUserId(StrUtil.fill(source.getUserId(),'0',4,true));
         source.setTest(false);
         executorService.execute(()->{