Parcourir la source

研究员详情

kobe6258 il y a 1 mois
Parent
commit
082c01e889
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      service/user/user_service.go

+ 1 - 0
service/user/user_service.go

@@ -342,6 +342,7 @@ func GetFollowingAnalystList(userId int) (analysts []FollowAnalystDTO, err error
 			analystsDTO, err = analystService.GetAnalystById(followDTo.AnalystId)
 			if err != nil {
 				logger.Error("获取研究员信息失败")
+				followDTo.AnalystId = -1
 			} else {
 				followDTo.HeadImgUrl = analystsDTO.HeadImgUrl
 			}