Commit 9d1ad5a0 authored by hujiebin's avatar hujiebin

Update user.go

parent abba0476
......@@ -152,7 +152,7 @@ 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 {
} else if cp != nil && cp.CpUserInfo != nil && cp.CpUserInfo.Avatar != nil {
headwear.HeadwearIcon = *cp.CpUserInfo.Avatar
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment