Browse Source

Merge branch 'bzq/dev' of eta_mini/eta_mini_api into debug

鲍自强 11 tháng trước cách đây
mục cha
commit
12677d9c40
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      controllers/report.go

+ 5 - 1
controllers/report.go

@@ -28,7 +28,11 @@ func (this *ReportController) Detail() {
 		return
 	}
 	user := this.User
-
+	if user == nil {
+		br.Ret = 408
+		br.Msg = "用户未登录"
+		return
+	}
 	result, err := services.GetReportDetail(reportId, user.UserId)
 	if err != nil {
 		br.Msg = "查询报告详情失败"