|
|
@ -184,10 +184,11 @@ public class MessageRequestProcessor extends SIPRequestAbstractProcessor { |
|
|
|
DeviceChannel deviceChannel = new DeviceChannel(); |
|
|
|
deviceChannel.setName(channelName); |
|
|
|
deviceChannel.setChannelId(channelDeviceId); |
|
|
|
if (status.equals("ON") || status.equals("On")) { |
|
|
|
// ONLINE OFFLINE 部分NVR的兼容性处理
|
|
|
|
if (status.equals("ON") || status.equals("On") || status.equals("ONLINE")) { |
|
|
|
deviceChannel.setStatus(1); |
|
|
|
} |
|
|
|
if (status.equals("OFF") || status.equals("Off")) { |
|
|
|
if (status.equals("OFF") || status.equals("Off") || status.equals("OFFLINE")) { |
|
|
|
deviceChannel.setStatus(0); |
|
|
|
} |
|
|
|
|
|
|
|