优化日志以及属性设置代码

This commit is contained in:
648540858
2024-07-03 17:09:49 +08:00
parent 799932f614
commit adf040ec4b
34 changed files with 184 additions and 1042 deletions

View File

@@ -108,7 +108,7 @@ public class ApiStreamController {
resultJSON.put("error","channel[ " + code + " ]未找到");
result.setResult(resultJSON);
return result;
}else if (!deviceChannel.isStatus()) {
}else if (!deviceChannel.getStatus().equalsIgnoreCase("ON")) {
JSONObject resultJSON = new JSONObject();
resultJSON.put("error","channel[ " + code + " ]offline");
result.setResult(resultJSON);