Commit 171edf2c authored by hujiebin's avatar hujiebin

Update user.go

parent 6a8de3cd
......@@ -152,8 +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 && cp.CpUserInfo.Avatar != nil {
headwear.HeadwearIcon = *(cp.CpUserInfo).Avatar
} else if cp != nil && cp.CpUserInfo != nil && cp.CpUserInfo.Avatar != nil && headwear != nil {
headwear.HeadwearIcon = *cp.CpUserInfo.Avatar
}
groupPowerId, groupPowerName, err := groupPower_m.GetUserGroupPower(model, userId)
......
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