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