ziwen 1 year ago
parent
commit
6c7ec3c29a
1 changed files with 2 additions and 2 deletions
  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 {
 	if req.DoType == 1 {
 		item.Status = 1
 		item.Status = 1
+		br.Msg = "保存成功"
 	} else {
 	} else {
 		item.Status = 2
 		item.Status = 2
+		br.Msg = "已提交审核"
 	}
 	}
 
 
 	var newId int64
 	var newId int64
@@ -377,7 +379,6 @@ func (this *YanxuanSpecialController) Save() {
 			br.ErrMsg = "新增失败,Err:" + err.Error()
 			br.ErrMsg = "新增失败,Err:" + err.Error()
 			return
 			return
 		}
 		}
-		br.Msg = "保存成功"
 	} else {
 	} else {
 		err = models.UpdateYanxuanSpecial(&item)
 		err = models.UpdateYanxuanSpecial(&item)
 		if err != nil {
 		if err != nil {
@@ -386,7 +387,6 @@ func (this *YanxuanSpecialController) Save() {
 			return
 			return
 		}
 		}
 		newId = int64(req.Id)
 		newId = int64(req.Id)
-		br.Msg = "已提交审核"
 	}
 	}
 
 
 	br.Ret = 200
 	br.Ret = 200