Prechádzať zdrojové kódy

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

鲍自强 11 mesiacov pred
rodič
commit
12677d9c40
1 zmenil súbory, kde vykonal 5 pridanie a 1 odobranie
  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 = "查询报告详情失败"