Ver código fonte

Merge branch 'ETA_1.2.6' into debug

ziwen 1 ano atrás
pai
commit
78fef986c8
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      controllers/smart_report_approval.go

+ 5 - 1
controllers/smart_report_approval.go

@@ -283,7 +283,11 @@ func (this *SmartReportController) Publish() {
 		}()
 	}
 
+	if req.PublishState == models.SmartReportStateRejected {
+		br.Msg = "驳回成功"
+	} else {
+		br.Msg = "审批成功"
+	}
 	br.Ret = 200
 	br.Success = true
-	br.Msg = "操作成功"
 }