Преглед изворни кода

Merge branch 'cygx_12.0' into debug

ziwen пре 1 година
родитељ
комит
a7365e72d5
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 {
 	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