From 8302b3c7d7cd8cd6af3ada675452afc534948a07 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Mon, 30 Dec 2024 17:01:43 +0800 Subject: [PATCH] 1 --- internal/business/api/business_ext.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/business/api/business_ext.go b/internal/business/api/business_ext.go index 558bbfd..9495d08 100644 --- a/internal/business/api/business_ext.go +++ b/internal/business/api/business_ext.go @@ -271,7 +271,7 @@ func (s *BusinessExtServer) GetUser(ctx context.Context, req *pb.GetUserReq) (*p } var businessUser business.User - err := db.BusinessDB.First(&businessUser, "phone_number = ?", user.PhoneNumber).Error + err := db.BusinessDB.First(&businessUser, "phone = ?", user.PhoneNumber).Error if err != nil && err != gorm.ErrRecordNotFound { return nil, gerrors.WrapError(err) }