ziwen 1 anno fa
parent
commit
3c7569397d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
 	}