ziwen 1 年之前
父節點
當前提交
8bb4afc146
共有 1 個文件被更改,包括 5 次插入1 次删除
  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 = "操作成功"
 }