标签判断完没有加break,导致标签会继续走分类的逻辑

pull/188/head
wuzhi1234 2019-06-08 03:38:04 +08:00
parent 2a60e1cd20
commit 41806bef98
1 changed files with 1 additions and 0 deletions

View File

@ -330,6 +330,7 @@ public class PostServiceImpl extends BasePostServiceImpl<Post> implements PostSe
tag = tagService.create(tag); tag = tagService.create(tag);
} }
tagIds.add(tag.getId()); tagIds.add(tag.getId());
break;
case "categories": case "categories":
Category category = categoryService.getByName(ele); Category category = categoryService.getByName(ele);
if (null == category) { if (null == category) {