Commit 41d2f245 authored by Farahani's avatar Farahani Committed by linlinjava
Browse files

fix[litemall-wx-api]:获取小程序首页接口 如果出现异常 会导致缓存里面的数据不全,如果出现异常应该不进行缓存 (#170)

parent 878a921a
......@@ -132,13 +132,14 @@ public class WxHomeController {
data.put("topicList", topicListTask.get());
data.put("grouponList", grouponListTask.get());
data.put("floorGoodsList", floorGoodsListTask.get());
//缓存数据
HomeCacheManager.loadData(HomeCacheManager.INDEX, data);
}
catch (Exception e) {
e.printStackTrace();
}finally {
executorService.shutdown();
}
//缓存数据
HomeCacheManager.loadData(HomeCacheManager.INDEX, data);
executorService.shutdown();
return ResponseUtil.ok(data);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment