好友
阅读权限10
听众
最后登录1970-1-1
|
// ns18.frmStart
// Token: 0x06000B02 RID: 2818 RVA: 0x000F9914 File Offset: 0x000F7B14
public string method_0()
{
Class36.string_2 = "";
Class40 @class = new Class40();
string result = "";
Class136 class2 = new Class136();
Class36.Class37.string_2 = class2.method_3();
Class49 class3 = new Class49();
ReturnStart returnStart;
returnStart;
Class36.Class37.string_3 = returnStart.method_0(returnStart, "SOFTWARE\\UUsoft\\VGBrowser", "regCode");
if (!string.IsNullOrEmpty(Class36.Class37.string_3) || (!string.IsNullOrEmpty(@class.User_UserName) && !string.IsNullOrEmpty(@class.User_Password)))
{
string text = new Random().Next(1000, 9999).ToString();
string string_ = string.Concat(new string[]
{
"{\"n\":\"",
text,
"\",\"opt\":\"start\",\"rc\":\"",
Class36.Class37.string_3,
"\",\"user\":\"",
@class.User_UserName,
"\",\"pwd\":\"",
@class.User_Password,
"\"}"
});
string str = Class31.smethod_6(string_);
string url = "http://www.visualget.com/api/client";
HttpHelper httpHelper = new HttpHelper();
HttpItem httpItem = new HttpItem
{
Method = "POST",
ContentType = "application/x-www-form-urlencoded",
URL = url,
Postdata = "que=" + str,
IsUpdateCookie = false
};
HttpResult html = httpHelper.GetHtml(httpItem);
string text2 = Class31.smethod_8(html.Html ?? "");
if (text2 != "")
{
MemoryStream stream = new MemoryStream(Encoding.Default.GetBytes(text2));
DataContractJsonSerializer dataContractJsonSerializer = new DataContractJsonSerializer(typeof(ReturnStart));
returnStart = (ReturnStart)dataContractJsonSerializer.ReadObject(stream);
Class36.Class37.iSID = returnStart.sid;
switch (Class36.Class37.iSID)
{
case 2:
case 3:
Class36.Class37.strUserType = "旗舰版";
break;
default:
Class36.Class37.strUserType = "免费版";
break;
}
Class36.Class37.int_0 = returnStart.loginstatus;
if (returnStart.loginstatus == 1)
{
Class36.string_2 = HttpHelper.GetSmallCookie(html.Cookie);
}
if (returnStart.rc != Class36.Class37.string_3)
{
result = "注册码无效";
}
else
{
DateTime dateTime;
DateTime.TryParse(returnStart.enddate, out dateTime);
Class36.Class37.dateTime_0 = dateTime;
DateTime dateTime_;
DateTime.TryParse(returnStart.eenddate, out dateTime_);
Class36.Class37.dateTime_1 = dateTime_;
if (dateTime > DateTime.Now)
{
if (dateTime.ToString("yyyyMMdd") == "22000101")
{
Class36.Class37.string_1 = "不限";
}
else
{
Class36.Class37.string_1 = dateTime.ToString("yyyy-MM-dd HH:mm:ss");
}
}
else
{
result = "注册码已过期";
Class36.Class37.string_1 = dateTime.ToString("yyyy-MM-dd HH:mm:ss") + "(过期)";
}
if (returnStart.n == text && !string.IsNullOrEmpty(returnStart.apc) && returnStart.apc == Class36.Class37.string_2)
{
Class36.Class37.bool_0 = true;
if (dateTime > DateTime.Now)
{
result = "注册正常";
Class36.Class37.bIsSoftVip = true;
}
else
{
result = "注册码已过期";
}
}
else if (!string.IsNullOrEmpty(returnStart.apc) && returnStart.apc != Class36.Class37.string_2)
{
result = "需要激活";
}
}
}
}
return result;
}
|
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|