|
|
@@ -48,7 +48,7 @@ func (u UserDb) UserInsert(m *model.User) (int64, error) { |
|
|
|
|
|
|
|
func (u UserDb) GetUserByInviteCode(inviteCode string) (m *model.User, err error) { |
|
|
|
m = new(model.User) |
|
|
|
has, err := u.Db.Where("invite_code =?", inviteCode).Get(m) |
|
|
|
has, err := u.Db.Where("system_invite_code =?", inviteCode).Get(m) |
|
|
|
if err != nil { |
|
|
|
return nil, zhios_order_relate_logx.Error(err) |
|
|
|
} |
|
|
|