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
dfddf82c
Commit
dfddf82c
authored
Nov 10, 2018
by
Junling Bu
Browse files
fix[litemall-admin-api]: 一级类目添加失败
parent
f5556232
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminCategoryController.java
View file @
dfddf82c
...
...
@@ -65,7 +65,7 @@ public class AdminCategoryController {
}
Integer
pid
=
category
.
getPid
();
if
(
pid
==
null
){
if
(
level
.
equals
(
"L2"
)
&&
(
pid
==
null
)
)
{
return
ResponseUtil
.
badArgument
();
}
...
...
@@ -82,7 +82,7 @@ public class AdminCategoryController {
return
error
;
}
categoryService
.
add
(
category
);
return
ResponseUtil
.
ok
();
return
ResponseUtil
.
ok
(
category
);
}
@GetMapping
(
"/read"
)
...
...
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