作者 陈志颖

fix:修复推荐人userInfo数据缺失

... ... @@ -175,7 +175,14 @@ func (translator *UserTranslator) ToReferrerFromRepresentation(user *UserDetail)
CompanyLogo: "",
CompanyName: user.Company.CompanyName,
},
UserInfo: nil,
UserInfo: &domain.UserInfo{
UserAvatar: user.UserInfo.Avatar,
UserEmail: user.UserInfo.Email,
UserName: user.UserInfo.UserName,
UserPhone: user.UserInfo.Phone,
UserAccount: "",
UserCode: user.UserCode,
},
UserType: user.UserType,
UserName: user.UserInfo.UserName,
UserPhone: user.UserInfo.Phone,
... ...