From 27e3e2ec8c9523ba6587df9150dc7f279e268a29 Mon Sep 17 00:00:00 2001 From: aichy126 <16996097+aichy126@users.noreply.github.com> Date: Wed, 2 Nov 2022 11:46:26 +0800 Subject: [PATCH] fix AvatarInfo json.Unmarshal error --- internal/schema/user_schema.go | 2 -- 1 file changed, 2 deletions(-) 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 {