From 90629c893fa49388673865c91bca05a01f6ceed7 Mon Sep 17 00:00:00 2001 From: hawklin2017 <32898629+hawklin2017@users.noreply.github.com> Date: Fri, 10 Apr 2026 17:42:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9F=B3=E8=A7=86=E9=A2=91=E9=80=9A=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/api/phone_sn.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/api/phone_sn.go b/internal/api/phone_sn.go index 3302ef215..8746cb6ba 100644 --- a/internal/api/phone_sn.go +++ b/internal/api/phone_sn.go @@ -12,6 +12,7 @@ import ( "github.com/openimsdk/open-im-server/v3/pkg/common/storage/database" "github.com/openimsdk/tools/apiresp" "github.com/openimsdk/tools/errs" + "github.com/openimsdk/tools/log" ) type PhoneSNApi struct { @@ -42,16 +43,19 @@ func (a *PhoneSNApi) GetSNInfo(c *gin.Context) { var req phoneGetSNInfoReq if err := c.ShouldBindJSON(&req); err != nil { apiresp.GinError(c, errs.ErrArgs.WrapMsg(err.Error())) + log.ZError(c, "GetSNInfo", err) return } phone := strings.TrimSpace(req.Phone) if phone == "" { apiresp.GinError(c, errs.ErrArgs.WrapMsg("phone is empty")) + log.ZError(c, "GetSNInfo", errs.ErrArgs.WrapMsg("phone is empty")) return } info, err := a.db.GetByPhone(c, phone) if err != nil { apiresp.GinError(c, err) + log.ZError(c, "GetSNInfo", err) return } resp := phoneGetSNInfoResp{IsSnd: false, UserID: 0}