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

fix[litemall-wx-api]: 检查是否空

parent 22d0345e
......@@ -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>();
......
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