Commit 6648e1a1 by 黄小葱

处理异常

1 parent 90ce949a
......@@ -30,6 +30,7 @@ public class RemoteDeviceService {
//加密得到sign
String sign = GopUtil.sign(tparams, appSecret);
tparams.put("sign", sign);
try {
String result = HttpUtils.get(url, tparams);
JSONObject resultObj = JSONObject.parseObject(result);
if (resultObj == null) {
......@@ -48,5 +49,9 @@ public class RemoteDeviceService {
}
TrackInfoBo trackInfoBo = JSONObject.parseObject(data, TrackInfoBo.class);
return trackInfoBo;
} catch (Exception e) {
log.info("调用虎哥E盾标准接口查询设备信息异常:{}", e.getMessage());
}
return null;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!