ziwen 1 rok pred
rodič
commit
3c7569397d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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
 	}