浏览代码

no message

xingzai 1 年之前
父节点
当前提交
ae6a4b9126
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      controllers/yanxuan_special.go

+ 11 - 0
controllers/yanxuan_special.go

@@ -403,6 +403,17 @@ func (this *YanxuanSpecialController) Save() {
 			return
 		}
 	} 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 = "保存失败"