Explorar el Código

研究员详情

kobe6258 hace 1 mes
padre
commit
082c01e889
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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
 			}