Browse Source

用户邀请码

master
huangjiajun 1 day ago
parent
commit
cd010c8771
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/implement/user_implement.go

+ 2
- 2
src/implement/user_implement.go View File

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


Loading…
Cancel
Save