From cd010c8771325b8837420479d1b15c73c3ccc7a1 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sat, 21 Dec 2024 12:51:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E9=82=80=E8=AF=B7=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/implement/user_implement.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/implement/user_implement.go b/src/implement/user_implement.go index e0425dc..d4636c4 100644 --- a/src/implement/user_implement.go +++ b/src/implement/user_implement.go @@ -72,7 +72,7 @@ func (u UserDb) GetUserByCustomInviteCode(inviteCode string) (m *model.User, err func (u UserDb) UserFindByInviteCodes(codes ...string) (*[]model.User, error) { var m []model.User - if err := u.Db.In("custom_invite_code", codes).Find(&m); err != nil { + if err := u.Db.In("system_invite_code", codes).Find(&m); err != nil { return nil, zhios_order_relate_logx.Warn(err) } return &m, nil @@ -80,7 +80,7 @@ func (u UserDb) UserFindByInviteCodes(codes ...string) (*[]model.User, error) { func (u UserDb) UserFindByCustomInviteCodes(codes ...string) (*[]model.User, error) { var m []model.User - if err := u.Db.In("system_invite_code", codes).Find(&m); err != nil { + if err := u.Db.In("custom_invite_code", codes).Find(&m); err != nil { return nil, zhios_order_relate_logx.Warn(err) } return &m, nil