Unverified Commit a3a36d82 authored by Breaker's avatar Breaker Committed by GitHub
Browse files

fix[litemall-wx-api]: 下标越界的问题 (#363)

parent 4f6f34c2
...@@ -63,8 +63,10 @@ public class WxCatalogController { ...@@ -63,8 +63,10 @@ public class WxCatalogController {
if (id != null) { if (id != null) {
currentCategory = categoryService.findById(id); currentCategory = categoryService.findById(id);
} else { } else {
if (l1CatList.size() > 0) {
currentCategory = l1CatList.get(0); currentCategory = l1CatList.get(0);
} }
}
// 当前一级分类目录对应的二级分类目录 // 当前一级分类目录对应的二级分类目录
List<LitemallCategory> currentSubCategory = null; List<LitemallCategory> currentSubCategory = null;
......
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