Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
41d2f245
Commit
41d2f245
authored
Apr 30, 2019
by
Farahani
Committed by
linlinjava
Apr 30, 2019
Browse files
fix[litemall-wx-api]:获取小程序首页接口 如果出现异常 会导致缓存里面的数据不全,如果出现异常应该不进行缓存 (#170)
parent
878a921a
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxHomeController.java
View file @
41d2f245
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment