From 21bac79167e77d83475f8fd567a7238f29e42632 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 22 Nov 2022 18:14:47 +0800 Subject: [PATCH] update --- internal/business/api/business_ext.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/business/api/business_ext.go b/internal/business/api/business_ext.go index 27a949e..e69ff61 100644 --- a/internal/business/api/business_ext.go +++ b/internal/business/api/business_ext.go @@ -30,7 +30,9 @@ func (s *BusinessExtServer) GetUser(ctx context.Context, req *pb.GetUserReq) (*p if err != nil { return nil, err } - + if req.UserId != 0 { + userId = req.UserId + } user, err := app.UserApp.Get(ctx, userId) return &pb.GetUserResp{User: user}, err }