Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix AvatarInfo json.Unmarshal error

aichy12627e3e2ec8c95
diff --git a/internal/schema/user_schema.go b/internal/schema/user_schema.go
index 6ca66f76..d871d5ea 100644
--- a/internal/schema/user_schema.go
+++ b/internal/schema/user_schema.go
@@ -10,7 +10,6 @@ import (
"github.com/answerdev/answer/pkg/checker"
"github.com/jinzhu/copier"
"github.com/segmentfault/pacman/errors"
- "github.com/segmentfault/pacman/log"
)
// UserVerifyEmailReq user verify email request
@@ -108,7 +107,6 @@ func FormatAvatarInfo(avatarJson string) string {
AvatarInfo := &AvatarInfo{}
err := json.Unmarshal([]byte(avatarJson), AvatarInfo)
if err != nil {
- log.Error("AvatarInfo json.Unmarshal Error", err)
return ""
}
switch AvatarInfo.Type {