提交 63e20432 authored 作者: 张国庆's avatar 张国庆

Update AMapLocationClientImpl.java

增加finally 处理
上级 a1373633
...@@ -39,6 +39,7 @@ public class AMapLocationClientImpl implements AMapLocationListener { ...@@ -39,6 +39,7 @@ public class AMapLocationClientImpl implements AMapLocationListener {
} }
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
}finally {
Map<String, Object> result=new HashMap<>(); Map<String, Object> result=new HashMap<>();
result.put("errorCode", -1); result.put("errorCode", -1);
result.put("errorInfo", "locationClient is error"); result.put("errorInfo", "locationClient is error");
...@@ -56,6 +57,7 @@ public class AMapLocationClientImpl implements AMapLocationListener { ...@@ -56,6 +57,7 @@ public class AMapLocationClientImpl implements AMapLocationListener {
} }
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
}finally {
Map<String, Object> result=new HashMap<>(); Map<String, Object> result=new HashMap<>();
result.put("errorCode", -1); result.put("errorCode", -1);
result.put("errorInfo", "locationClient is error"); result.put("errorInfo", "locationClient is error");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论