|
|
@@ -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 |
|
|
|