소스 검색

no message

zhangchuanxing 1 개월 전
부모
커밋
9afa41f5e0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      controllers/report_selection.go

+ 2 - 2
controllers/report_selection.go

@@ -96,14 +96,14 @@ func (this *ReportSelectionController) Detail() {
 	if detail.VisibleRange == 1 || user.CompanyId == utils.HZ_COMPANY_ID {
 		resp.IsShow = true
 	}
+	resp.HasPermission = hasPermission
 	if !resp.IsShow {
-		br.Ret = 200
+		br.Ret = 201
 		br.Success = true
 		br.Msg = "获取成功"
 		br.Data = resp
 		return
 	}
-	resp.HasPermission = hasPermission
 	if hasPermission != 1 || !resp.IsShow {
 		resp.Detail = detail
 		br.Ret = 200