From 6a8de3cd972376f227d480bc3c7cd47ce7d62226 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Wed, 21 Jun 2023 10:51:20 +0800 Subject: [PATCH] Update user.go --- domain/service/user_s/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/service/user_s/user.go b/domain/service/user_s/user.go index 3eb69f3..e292325 100644 --- a/domain/service/user_s/user.go +++ b/domain/service/user_s/user.go @@ -153,7 +153,7 @@ func (s *UserService) GetUserDetail(userId mysql.ID, myUserId mysql.ID, lang str if err != nil { return nil, err } else if cp != nil && cp.CpUserInfo != nil && cp.CpUserInfo.Avatar != nil { - headwear.HeadwearIcon = *cp.CpUserInfo.Avatar + headwear.HeadwearIcon = *(cp.CpUserInfo).Avatar } groupPowerId, groupPowerName, err := groupPower_m.GetUserGroupPower(model, userId) -- 2.22.0