ziwen 1 year ago
parent
commit
3c7569397d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/yanxuan_special.go

+ 1 - 1
controllers/yanxuan_special.go

@@ -269,7 +269,7 @@ func (this *YanxuanSpecialController) Save() {
 		br.Msg = "请输入内容"
 		return
 	}
-	if req.Tags == "" {
+	if req.Tags == "" && req.DoType == 2 {
 		br.Msg = "请至少输入一个标签"
 		return
 	}