diff --git a/domain/service/user_s/user.go b/domain/service/user_s/user.go index f8f0e8c09aab7ac844e37aa2a76249e23f7c115f..f76cd7499e2bb020b0262ba619c2579b41c0a6c2 100644 --- a/domain/service/user_s/user.go +++ b/domain/service/user_s/user.go @@ -152,6 +152,8 @@ func (s *UserService) GetUserDetail(userId mysql.ID, myUserId mysql.ID, lang str cp, err := cp_s.NewCpService(s.svc.MyContext).GetUserCp(userId, lang) if err != nil { return nil, err + } else if cp != nil && cp.CpUserInfo != nil { + headwear.HeadwearIcon = *cp.CpUserInfo.Avatar } groupPowerId, groupPowerName, err := groupPower_m.GetUserGroupPower(model, userId)