提交 12c1f917 authored 作者: hzh's avatar hzh

bug修复

上级 b5a13ea1
...@@ -38,6 +38,9 @@ public class HotelServiceImpl implements IHotelService { ...@@ -38,6 +38,9 @@ public class HotelServiceImpl implements IHotelService {
if (!CharSequenceUtil.equals(res.getErrCode(), Code.SUCCESS.getCode())) { if (!CharSequenceUtil.equals(res.getErrCode(), Code.SUCCESS.getCode())) {
throw new RuntimeException(res.getTips()); throw new RuntimeException(res.getTips());
} }
if (res.getData() == null) {
return null;
}
return JSON.parseObject(JSON.parseObject(res.getData()).toJSONString(), HotelDetailModel.class); return JSON.parseObject(JSON.parseObject(res.getData()).toJSONString(), HotelDetailModel.class);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论