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
f4213410
Commit
f4213410
authored
May 10, 2019
by
Junling Bu
Browse files
fix[litemall-wx-api]: 检查是否空
parent
22d0345e
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxCatalogController.java
View file @
f4213410
...
...
@@ -119,6 +119,9 @@ public class WxCatalogController {
public
Object
current
(
@NotNull
Integer
id
)
{
// 当前分类
LitemallCategory
currentCategory
=
categoryService
.
findById
(
id
);
if
(
currentCategory
==
null
){
return
ResponseUtil
.
badArgumentValue
();
}
List
<
LitemallCategory
>
currentSubCategory
=
categoryService
.
queryByPid
(
currentCategory
.
getId
());
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
...
...
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