Commit de76462a authored by Menethil's avatar Menethil
Browse files

Merge remote-tracking branch 'origin/master'

parents 8e8c14b1 ac24031e
...@@ -189,7 +189,7 @@ public class WxGoodsController { ...@@ -189,7 +189,7 @@ public class WxGoodsController {
if (cur.getPid() == 0) { if (cur.getPid() == 0) {
parent = cur; parent = cur;
children = categoryService.queryByPid(cur.getId()); children = categoryService.queryByPid(cur.getId());
cur = children.get(0); cur = children.size()>0?children.get(0):cur;
} else { } else {
parent = categoryService.findById(cur.getPid()); parent = categoryService.findById(cur.getPid());
children = categoryService.queryByPid(cur.getPid()); children = categoryService.queryByPid(cur.getPid());
......
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