From 683e9f006de28907472407beef6a62cc2d412985 Mon Sep 17 00:00:00 2001 From: luhaoling <2198702716@qq.com> Date: Tue, 28 Nov 2023 14:29:15 +0800 Subject: [PATCH] fix: fix the error of repalce --- internal/rpc/user/callback.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/rpc/user/callback.go b/internal/rpc/user/callback.go index c2835a940..01de2734d 100644 --- a/internal/rpc/user/callback.go +++ b/internal/rpc/user/callback.go @@ -75,8 +75,8 @@ func CallbackBeforeUserRegister(ctx context.Context, req *pbuser.UserRegisterReq if err := http.CallBackPostReturn(ctx, config.Config.Callback.CallbackUrl, cbReq, resp, config.Config.Callback.CallbackBeforeUpdateUserInfo); err != nil { return err } - if !*config.Config.Callback.CallbackBeforeUserRegister.CallbackFailedContinue { - utils.NotNilReplace(&req.Users, &resp.Users) + if len(resp.Users) != 0 { + req.Users = resp.Users } return nil }