登录失败,验证失败{ "ret": 0, "msg": "", "is_lost":0, "nickname": "子木", "gender": "", "figureurl": "http:\/\/qzapp.qlogo.cn\/qzapp\/101041986\/D8CC7232D78495426435FFDB55AA4437\/30", "figureurl_1": "http:\/\/qzapp.qlogo.cn\/qzapp\/101041986\/D8CC7232D78495426435FFDB55AA4437\/50", "figureurl_2": "http:\/\/qzapp.qlogo.cn\/qzapp\/101041986\/D8CC7232D78495426435FFDB55AA4437\/100", "figureurl_qq_1": "http:\/\/q.qlogo.cn\/qqapp\/101041986\/D8CC7232D78495426435FFDB55AA4437\/40", "figureurl_qq_2": "http:\/\/q.qlogo.cn\/qqapp\/101041986\/D8CC7232D78495426435FFDB55AA4437\/100", "is_yellow_vip": "0", "vip": "0", "yellow_vip_level": "0", "level": "0", "is_yellow_year_vip": "0" } 获取授权失败!指定的参数已超出有效值的范围。 参数名: i
请问下大神,这是哪里错了呢。网站后台有配置信任登录,今天去QQ互联申请了,测试出现这个问题。
后台cs:
protected void SkipQQOpenId()
{
Member member;
member = member = new Member(UserRole.Member);
if (HiContext.Current.ReferralUserId > 0)
{
member.ReferralUserId = new int?(HiContext.Current.ReferralUserId);
}
member.GradeId = MemberProcessor.GetDefaultMemberGrade();
HttpCookie cookie = HttpContext.Current.Request.Cookies["NickName"];
if (cookie != null)
{
member.Username = HttpUtility.UrlDecode(cookie.Value);
}
if (string.IsNullOrEmpty(member.Username))
{
member.Username = "腾讯会员_" + this.GenerateUsername(8);
}
member.Email = this.GenerateUsername() + "@localhost.com";
string str = this.GeneratePassword();
member.Password = str;
member.PasswordFormat = MembershipPasswordFormat.Hashed;
member.TradePasswordFormat = MembershipPasswordFormat.Hashed;
member.TradePassword = str;
member.IsApproved = true;
member.RealName = string.Empty;
member.Address = string.Empty;
if (MemberProcessor.CreateMember(member) != CreateUserStatus.Created)
{
member.Username = "腾讯会员_" + this.GenerateUsername(8);
member.Password = member.TradePassword = str;
if (MemberProcessor.CreateMember(member) != CreateUserStatus.Created)
{
member.Username = this.GenerateUsername();
member.Email = this.GenerateUsername() + "@localhost.com";
member.Password = member.TradePassword = str;
if (MemberProcessor.CreateMember(member) != CreateUserStatus.Created)
{
base.Response.Write("为您创建随机账户时失败,请重试。");