Commit dfddf82c authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-admin-api]: 一级类目添加失败

parent f5556232
......@@ -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")
......
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