|
|
@@ -66,7 +66,7 @@ public class KwBoxV1Controller extends BaseController { |
|
|
if (kwBox == null) |
|
|
if (kwBox == null) |
|
|
return new ResultData(ErrorCode.DEVICE_NOT_FOUND); |
|
|
return new ResultData(ErrorCode.DEVICE_NOT_FOUND); |
|
|
|
|
|
|
|
|
if (!kwBox.getStatus().equals(EnumBoxStatus.INIT)) |
|
|
|
|
|
|
|
|
if (!kwBox.getStatus().equals(EnumBoxStatus.INIT.getCode())) |
|
|
return new ResultData(ErrorCode.DEVICE_ALREADY_EXIST); |
|
|
return new ResultData(ErrorCode.DEVICE_ALREADY_EXIST); |
|
|
|
|
|
|
|
|
saveCmd(kwBox.getTenantId(),"regist",imei,ccid,deviceTime,paramMap); |
|
|
saveCmd(kwBox.getTenantId(),"regist",imei,ccid,deviceTime,paramMap); |
|
|
@@ -120,7 +120,7 @@ public class KwBoxV1Controller extends BaseController { |
|
|
if (kwBox == null) |
|
|
if (kwBox == null) |
|
|
return new ResultData(ErrorCode.DEVICE_NOT_FOUND); |
|
|
return new ResultData(ErrorCode.DEVICE_NOT_FOUND); |
|
|
|
|
|
|
|
|
if (!kwBox.getStatus().equals(EnumBoxStatus.REGISTERED)) |
|
|
|
|
|
|
|
|
if (!kwBox.getStatus().equals(EnumBoxStatus.REGISTERED.getCode())) |
|
|
return new ResultData(ErrorCode.DEVICE_NOT_FOUND); |
|
|
return new ResultData(ErrorCode.DEVICE_NOT_FOUND); |
|
|
|
|
|
|
|
|
saveCmd(kwBox.getTenantId(),"hb",imei,ccid,deviceTime,paramMap); |
|
|
saveCmd(kwBox.getTenantId(),"hb",imei,ccid,deviceTime,paramMap); |
|
|
|