浏览代码

fix:研报权限

zqbao 10 月之前
父节点
当前提交
9809dea3b9
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      controllers/report.go

+ 5 - 5
controllers/report.go

@@ -236,7 +236,7 @@ func (this *ReportController) Detail() {
 			resp.Report = report
 			resp.Status = utils.ReportPermissionStatusNo
 			report.Content = ""
-			br.Ret = 408
+			br.Ret = 200
 			br.Data = resp
 			br.Msg = "用户权限不足"
 			return
@@ -246,7 +246,7 @@ func (this *ReportController) Detail() {
 			resp.Report = report
 			resp.Status = utils.ReportPermissionStatusExpired
 			report.Content = ""
-			br.Ret = 408
+			br.Ret = 200
 			br.Data = resp
 			br.Msg = "用户权限不足"
 			return
@@ -261,7 +261,7 @@ func (this *ReportController) Detail() {
 			resp.Report = report
 			resp.Status = utils.ReportPermissionStatusNo
 			report.Content = ""
-			br.Ret = 408
+			br.Ret = 200
 			br.Data = resp
 			br.Msg = "用户权限不足"
 			return
@@ -276,7 +276,7 @@ func (this *ReportController) Detail() {
 			resp.Report = report
 			resp.Status = utils.ReportPermissionStatusNoPermission
 			report.Content = ""
-			br.Ret = 408
+			br.Ret = 200
 			br.Data = resp
 			br.Msg = "用户权限不足"
 			return
@@ -291,7 +291,7 @@ func (this *ReportController) Detail() {
 			resp.Report = report
 			resp.Status = utils.ReportPermissionStatusNoPermission
 			report.Content = ""
-			br.Ret = 408
+			br.Ret = 200
 			br.Data = resp
 			br.Msg = "用户权限不足"
 			return