dengbiao 1 周之前
父節點
當前提交
8302b3c7d7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      internal/business/api/business_ext.go

+ 1
- 1
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)
}


Loading…
取消
儲存