public void CreateInviteCode() { if (this.config.Regstatus == 2 && this.invitationconfiginfo.InviteCodeUserCreatePerDay > 0 && Invitation.GetTodayUserCreatedInviteCode(this.userid) >= this.invitationconfiginfo.InviteCodeUserCreatePerDay) { base.AddErrLine("您今天申请邀请码的数量过多,请明天再试!"); return; } if (this.invitecodeinfo == null) { Invitation.CreateInviteCode(this.userinfo); base.SetUrl("invite.aspx"); base.SetMetaRefresh(); base.SetShowBackLink(false); base.AddMsgLine("创建邀请码成功"); } }
public void CreateInviteCode() { if (config.Regstatus == 2 && invitationconfiginfo.InviteCodeUserCreatePerDay > 0 && Invitation.GetTodayUserCreatedInviteCode(userid) >= invitationconfiginfo.InviteCodeUserCreatePerDay) { AddErrLine("您今天申请邀请码的数量过多,请明天再试!"); return; } if (invitecodeinfo == null)//如果当前用户未创建开放式邀请码 { Invitation.CreateInviteCode(userinfo); SetUrl("invite.aspx"); SetMetaRefresh(); SetShowBackLink(false); AddMsgLine("创建邀请码成功"); return; } }