ziwen 1 年之前
父節點
當前提交
6c7ec3c29a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      controllers/yanxuan_special.go

+ 2 - 2
controllers/yanxuan_special.go

@@ -365,8 +365,10 @@ func (this *YanxuanSpecialController) Save() {
 	}
 	if req.DoType == 1 {
 		item.Status = 1
+		br.Msg = "保存成功"
 	} else {
 		item.Status = 2
+		br.Msg = "已提交审核"
 	}
 
 	var newId int64
@@ -377,7 +379,6 @@ func (this *YanxuanSpecialController) Save() {
 			br.ErrMsg = "新增失败,Err:" + err.Error()
 			return
 		}
-		br.Msg = "保存成功"
 	} else {
 		err = models.UpdateYanxuanSpecial(&item)
 		if err != nil {
@@ -386,7 +387,6 @@ func (this *YanxuanSpecialController) Save() {
 			return
 		}
 		newId = int64(req.Id)
-		br.Msg = "已提交审核"
 	}
 
 	br.Ret = 200