ziwen há 1 ano atrás
pai
commit
8bb4afc146
1 ficheiros 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 = "操作成功"
 }