Эх сурвалжийг харах

Merge branch 'master' of http://8.136.199.33:3000/cxzhang/hongze_clpt into debug

xingzai 1 жил өмнө
parent
commit
f23176dd79

+ 11 - 0
controllers/yanxuan_special.go

@@ -432,6 +432,17 @@ func (this *YanxuanSpecialController) Save() {
 		}
 		specialId = int(id)
 	} else {
+		detail, tmpErr := models.GetYanxuanSpecialById(req.Id, sysUser.UserId)
+		if tmpErr != nil {
+			br.Msg = "获取失败"
+			br.ErrMsg = "获取失败, Err:" + tmpErr.Error()
+			return
+		}
+		if detail.Status == 2 {
+			br.Msg = "请勿重复提交"
+			br.ErrMsg = "保存失败,专栏内容正在审核"
+			return
+		}
 		err = models.UpdateYanxuanSpecial(&item)
 		if err != nil {
 			br.Msg = "保存失败"