|
@@ -35,7 +35,8 @@ public class LapiRequest {
|
|
|
|
|
|
if (lapiChannel==null){
|
|
|
log.error(deviceNo + "不在线!");
|
|
|
- return null;
|
|
|
+ throw new Exception("设备不在线");
|
|
|
+ // return null;
|
|
|
}
|
|
|
|
|
|
String msg = "";
|
|
@@ -95,7 +96,8 @@ public class LapiRequest {
|
|
|
return jsonObject;
|
|
|
}
|
|
|
else{
|
|
|
- return null;
|
|
|
+ throw new Exception("设备不在线");
|
|
|
+ // return null;
|
|
|
}
|
|
|
}
|
|
|
}
|