破解完成后,好像不完美,有暗桩,求助!
本帖最后由 风雪淘宝贝 于 2014-7-24 18:50 编辑破解一款分班软件,大部分搞定了,但在运行过程中,分班效果和正式注册的相差好大,
求大神帮忙看一下,头都大了,找不到关键点呀。。。不知道是哪的问题。 软件下载http://yunpan.cn/QhUhKIrLmAL4E访问密码
这款软件就是验证机器是否注册,都是离线验证的。验证成功后,解除人数限制。
还有一个就是人数限制解除了,但是分班的时候,效果还是不行。我去年用现在这个补丁是OK的,今年就不行了。软件没有升级,一切都是原来的。
所以好奇怪。我把软件原来的DLL和我破解的DLL也传上来大家分析一下。
这个就是正版的授权文件,解压密码baobei51
求高手呀。。。急需解决! 是什么分班软件?这版面太乱了,看不明白。。 我上传了,您下载一下。谢谢 private void backgroundWorker_4_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
string str = CConvert.ToString(HelperAccess.ExecuteScaler("select pwd from SUser where uno='unopuunoea12383428adfeunosaaega13' "));
if (str.Trim() != "")
{
str = str + ",";
}
string str2 = e.Result.ToString();
string[] strArray = new string[] { "", "" };
if (!string.IsNullOrEmpty(str2))
{
strArray = str2.Split(new char[] { ';' });
if ((strArray != null) && (strArray.Length > 1))
{ bool flag = true;
if (!string.IsNullOrEmpty(strArray))
{
this.Change_ToolStripMenuItem.Visible = true;
}
StringBuilder builder = new StringBuilder();
if (strArray.Trim() != "")
{
if (strArray.Trim() == "F0EED333C4D88896A2136A16FE339FC6AFD92")
{
builder.Append(str + "永久版(脱机状态),可分班最大学生数为" + strArray);
this.Change_ToolStripMenuItem.Visible = false;
flag = false;
else if (strArray.Trim() != "-#,%-sp%-.mmm")
{ builder.Append("已注册,用户名:");
builder.Append(strArray + ". ");
if (CConvert.ToInt32(strArray) == 0)
{
builder.Append("尚未充值,可分班最大学生数为" + this.int_0.ToString());
}
else if (CConvert.ToInt32(strArray) == 0xf4242)
{
this.int_0 = 0x186a0;
FMultU tu = new FMultU { LblTitle = { Text = str + "永久版用户,首次在此电脑使用需验证,通过即可脱机" }
};
tu.ShowDialog();
if (((tu.DialogResult == DialogResult.OK) && (BObj.username != "")) && (BObj.userpwd != ""))
{ string mmmUserP = "";
string jqmsgt = "";
if (this.int_2 == 2)
{
QHSERV qhserv = new QHSERV();
mmmUserP = qhserv.GetMmmUserP(BObj.username, BObj.userpwd);
if (mmmUserP != "")
{
jqmsgt = qhserv.Getjqmsgt(strArray + "-#,%-sp%-" + mmmUserP);
if (jqmsgt != "")
{
Delegate2 delegateForFunctionPointer = (Delegate2) Marshal.GetDelegateForFunctionPointer(NativeMethod.GetProcAddress(NativeMethod.LoadLibrary("gEdct.dll"), "GjtNum"), typeof(Delegate2));
if (delegateForFunctionPointer(strArray + "," + mmmUserP, jqmsgt) == 1) {
builder.Append(str + "永久版(脱机状态),可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = false; } else
{
builder.Append("验证失败,因脱机密匙错误,请登录网站重新生成密匙,可分班最大学生数为100000"); this.Change_ToolStripMenuItem.Visible = false;
}
}
}
else
{
builder.Append("因进一步验证失败,暂时联机使用,你可点击顶部菜单'更换用户'进行重新验证.可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
else
{
QHSERV qhserv2 = new QHSERV();
mmmUserP = qhserv2.GetMmmUserP(BObj.username, BObj.userpwd);
if (mmmUserP != "")
{
jqmsgt = qhserv2.Getjqmsgt(strArray + "-#,%-sp%-" + mmmUserP);
if (jqmsgt != "")
{
Delegate2 delegate3 = (Delegate2) Marshal.GetDelegateForFunctionPointer(NativeMethod.GetProcAddress(NativeMethod.LoadLibrary("gEdc.dll"), "GjtNum"), typeof(Delegate2));
if (delegate3(strArray + "," + mmmUserP, jqmsgt) == 1)
{
builder.Append(str + "永久版(脱机状态),可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = false;
}
else
{
builder.Append("验证失败,因脱机密匙错误,请登录网站重新生成密匙,可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
}
else
{
builder.Append("因进一步验证失败,暂时联机使用,你可点击顶部菜单'更换用户'进行重新验证.可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
if ((mmmUserP != "") && (HelperAccess.ExecuteNonQuery("update SUser set pwd='" + mmmUserP + "' where uno='mulpupwdea12383428adfeingsaaega13' ") <= 0))
{
HelperAccess.ExecuteNonQuery(" insert into SUser(uno,pwd) values('mulpupwdea12383428adfeingsaaega13','" + mmmUserP + "')");
}
if ((jqmsgt != "") && (HelperAccess.ExecuteNonQuery("update tyja set mgasms='" + jqmsgt + "' where ujm='" + mmmUserP + "' and jamcga='" + strArray + "'") <= 0))
{
HelperAccess.ExecuteNonQuery("insert into tyja(jamcga,ujm,mgasms) values('" + strArray + "','" + mmmUserP + "','" + jqmsgt + "')");
}
}
}
else if (CConvert.ToInt32(strArray) == 0xf4241)
{
this.int_0 = 0x186a0;
string str5 = "";
if (this.int_2 == 2)
{
str5 = new QHSERV().Getjqmsgt(strArray + "-#,%-sp%-" + strArray);
if (str5 != "")
{
Delegate2 delegate4 = (Delegate2) Marshal.GetDelegateForFunctionPointer(NativeMethod.GetProcAddress(NativeMethod.LoadLibrary("gEdct.dll"), "GjtNum"), typeof(Delegate2));
if (delegate4(strArray + "," + strArray, str5) == 1)
{
builder.Append(str + "永久版(脱机状态),可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = false;
}
else
{
builder.Append("验证失败,因脱机密匙错误或所选用户错误,请登录网站重新生成密匙或点击顶部菜单'更改用户',可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
else
{
builder.Append("验证失败,因脱机密匙错误或所选用户错误,请登录网站重新生成密匙或点击顶部菜单'更改用户',可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
else
{
str5 = new QHSERV().Getjqmsgt(strArray + "-#,%-sp%-" + strArray);
if (str5 != "")
{
Delegate2 delegate5 = (Delegate2) Marshal.GetDelegateForFunctionPointer(NativeMethod.GetProcAddress(NativeMethod.LoadLibrary("gEdc.dll"), "GjtNum"), typeof(Delegate2));
if (delegate5(strArray + "," + strArray, str5) == 1)
{
builder.Append(str + "永久版(脱机状态),可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = false;
}
else
{
builder.Append("验证失败,因脱机密匙错误或所选用户错误,请登录网站重新生成密匙或点击顶部菜单'更改用户',可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
else
{
builder.Append("验证失败,因脱机密匙错误或所选用户错误,请登录网站重新生成密匙或点击顶部菜单'更改用户',可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
if (!string.IsNullOrEmpty(str5) && (HelperAccess.ExecuteNonQuery("update tyja set mgasms='" + str5 + "' where ujm='" + strArray + "' and jamcga='" + strArray + "'") <= 0))
{
HelperAccess.ExecuteNonQuery("insert into tyja(jamcga,ujm,mgasms) values('" + strArray + "','" + strArray + "','" + str5 + "')");
}
}
else
{
builder.Append("可分班最大学生数为" + ((CConvert.ToInt32(strArray) < 200) ? "200" : strArray));
}
flag = false;
}
else
{
this.Change_ToolStripMenuItem.Visible = true;
FMultU tu2 = new FMultU();
tu2.ShowDialog();
if (tu2.DialogResult == DialogResult.OK)
{
if ((BObj.username != "") && (BObj.userpwd != ""))
{
string str6 = "";
if (this.int_2 == 2)
{
str6 = new QHSERV().GetMmmUserP(BObj.username, BObj.userpwd);
}
else
{
str6 = new QHSERV().GetMmmUserP(BObj.username, BObj.userpwd);
}
if (str6 != "")
{
if (HelperAccess.ExecuteNonQuery("update SUser set pwd='" + str6 + "' where uno='mulpupwdea12383428adfeingsaaega13' ") <= 0)
{
HelperAccess.ExecuteNonQuery(" insert into SUser(uno,pwd) values('mulpupwdea12383428adfeingsaaega13','" + str6 + "')");
}
int num5 = this.int_0;
num5 = BObj.GPaaeNsxdUadgM.Invoke((strArray + "-#,%-sp%-" + str6).Trim());
if (num5 > this.int_0)
{
this.int_0 = num5;
}
if (num5 == 0xf4241)
{
this.int_0 = 0x186a0;
string str8 = "";
if (this.int_2 == 2)
{
str8 = new QHSERV().Getjqmsgt(strArray + "-#,%-sp%-" + str6);
if (str8 != "")
{
Delegate2 delegate6 = (Delegate2) Marshal.GetDelegateForFunctionPointer(NativeMethod.GetProcAddress(NativeMethod.LoadLibrary("gEdct.dll"), "GjtNum"), typeof(Delegate2));
if (delegate6(strArray + "," + str6, str8) == 1)
{
builder.Append(str + "永久版(脱机状态),可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = false;
}
else
{
builder.Append("验证失败,因脱机密匙错误或所选用户错误,请登录网站重新生成密匙或点击顶部菜单'更改用户',可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
flag = false;
}
else
{
builder.Append("验证失败,你可点击顶部菜单'更换用户'进行重新验证.");
this.Change_ToolStripMenuItem.Visible = true;
}
}
else
{
str8 = new QHSERV().Getjqmsgt(strArray + "-#,%-sp%-" + str6);
if (str8 != "")
{
Delegate2 delegate7 = (Delegate2) Marshal.GetDelegateForFunctionPointer(NativeMethod.GetProcAddress(NativeMethod.LoadLibrary("gEdc.dll"), "GjtNum"), typeof(Delegate2));
if (delegate7(strArray + "," + str6, str8) == 1)
{
builder.Append(str + "永久版(脱机状态),可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = false;
}
else
{
builder.Append("验证失败,因脱机密匙错误或所选用户错误,请登录网站重新生成密匙或点击顶部菜单'更改用户',可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
flag = false;
}
else
{
builder.Append("验证失败,你可点击顶部菜单'更换用户'进行重新验证.");
this.Change_ToolStripMenuItem.Visible = true;
}
}
if (!string.IsNullOrEmpty(str8))
{
if (HelperAccess.ExecuteNonQuery("update tyja set mgasms='" + str8 + "' where ujm='" + str6 + "' and jamcga='" + strArray + "'") <= 0)
{
HelperAccess.ExecuteNonQuery("insert into tyja(jamcga,ujm,mgasms) values('" + strArray + "','" + str6 + "','" + str8 + "')");
}
}
else
{
builder.Append("验证失败,因脱机密匙错误或所选用户错误,请登录网站重新生成密匙或点击顶部菜单'更改用户',可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
else if (num5 == 0)
{
builder.Append("已注册,用户名:");
builder.Append(BObj.username + ". ");
builder.Append("尚未充值,可分班最大学生数为" + this.int_0.ToString());
}
else
{
builder.Append("已注册,用户名:");
builder.Append(BObj.username + ". ");
builder.Append("可分班最大学生数为" + ((num5 < 200) ? "200" : num5.ToString()));
}
flag = false;
}
else
{
builder.Append("验证失败,因有多个类似机器码,需进一步输入用户名密码进行确认,你可点击顶部'更改用户'菜单进行重新验证。可分班最大学生数为" + strArray);
}
}
}
else
{
builder.Append("验证失败,因有多个类似机器码,需进一步输入用户名密码进行确认,你可点击顶部'更改用户'菜单进行重新验证。可分班最大学生数为" + strArray);
}
}
}
else
{
builder.Append("已注册 授权给 <南京市浦口区浦厂中学> 可分班最大学生数为" + strArray);
}
this.LblStatusMsg.Text = builder.ToString();
if (flag)
{
this.LblStatusMsg.Text = this.LblStatusMsg.Text + "[新注册完后需要重新登录才能变更权限]";
}
this.LblStatusMsg.ForeColor = Color.White;
this.LblStatusImg.Visible = false;
}
}
this.bool_5 = true;
this.picBoxBar.Visible = false;
this.backgroundWorker_5.RunWorkerAsync();
}
}
代码是这样的吧。 本帖最后由 DaShanRen 于 2014-7-8 17:50 编辑
我晕,论坛编辑系统!
{:mad:}{:mad:}{:mad:}{:mad:}{:mad:}{:mad:}{:mad:}
private void backgroundWorker_4_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
string str = CConvert.ToString(HelperAccess.ExecuteScaler("select pwd from SUser where uno='unopuunoea12383428adfeunosaaega13' "));
if (str.Trim() != "")
{
str = str + ",";
}
string str2 = e.Result.ToString();
string[] strArray = new string[] { "", "" };
if (!string.IsNullOrEmpty(str2))
{
strArray = str2.Split(new char[] { ';' });
if ((strArray != null) && (strArray.Length > 1))
{ bool flag = true;
if (!string.IsNullOrEmpty(strArray))
{
this.Change_ToolStripMenuItem.Visible = true;
}
StringBuilder builder = new StringBuilder();
if (strArray.Trim() != "")
{
if (strArray.Trim() == "F0EED333C4D88896A2136A16FE339FC6AFD92")
{
builder.Append(str + "永久版(脱机状态),可分班最大学生数为" + strArray);
this.Change_ToolStripMenuItem.Visible = false;
flag = false;
else if (strArray.Trim() != "-#,%-sp%-.mmm")
{ builder.Append("已注册,用户名:");
builder.Append(strArray + ". ");
if (CConvert.ToInt32(strArray) == 0)
{
builder.Append("尚未充值,可分班最大学生数为" + this.int_0.ToString());
}
else if (CConvert.ToInt32(strArray) == 0xf4242)
{
this.int_0 = 0x186a0;
FMultU tu = new FMultU { LblTitle = { Text = str + "永久版用户,首次在此电脑使用需验证,通过即可脱机" }
};
tu.ShowDialog();
if (((tu.DialogResult == DialogResult.OK) && (BObj.username != "")) && (BObj.userpwd != ""))
{ string mmmUserP = "";
string jqmsgt = "";
if (this.int_2 == 2)
{
QHSERV qhserv = new QHSERV();
mmmUserP = qhserv.GetMmmUserP(BObj.username, BObj.userpwd);
if (mmmUserP != "")
{
jqmsgt = qhserv.Getjqmsgt(strArray + "-#,%-sp%-" + mmmUserP);
if (jqmsgt != "")
{
Delegate2 delegateForFunctionPointer = (Delegate2) Marshal.GetDelegateForFunctionPointer(NativeMethod.GetProcAddress(NativeMethod.LoadLibrary("gEdct.dll"), "GjtNum"), typeof(Delegate2));
if (delegateForFunctionPointer(strArray + "," + mmmUserP, jqmsgt) == 1) {
builder.Append(str + "永久版(脱机状态),可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = false; } else
{
builder.Append("验证失败,因脱机密匙错误,请登录网站重新生成密匙,可分班最大学生数为100000"); this.Change_ToolStripMenuItem.Visible = false;
}
}
}
else
{
builder.Append("因进一步验证失败,暂时联机使用,你可点击顶部菜单'更换用户'进行重新验证.可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
else
{
QHSERV qhserv2 = new QHSERV();
mmmUserP = qhserv2.GetMmmUserP(BObj.username, BObj.userpwd);
if (mmmUserP != "")
{
jqmsgt = qhserv2.Getjqmsgt(strArray + "-#,%-sp%-" + mmmUserP);
if (jqmsgt != "")
{
Delegate2 delegate3 = (Delegate2) Marshal.GetDelegateForFunctionPointer(NativeMethod.GetProcAddress(NativeMethod.LoadLibrary("gEdc.dll"), "GjtNum"), typeof(Delegate2));
if (delegate3(strArray + "," + mmmUserP, jqmsgt) == 1)
{
builder.Append(str + "永久版(脱机状态),可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = false;
}
else
{
builder.Append("验证失败,因脱机密匙错误,请登录网站重新生成密匙,可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
}
else
{
builder.Append("因进一步验证失败,暂时联机使用,你可点击顶部菜单'更换用户'进行重新验证.可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
if ((mmmUserP != "") && (HelperAccess.ExecuteNonQuery("update SUser set pwd='" + mmmUserP + "' where uno='mulpupwdea12383428adfeingsaaega13' ") <= 0))
{
HelperAccess.ExecuteNonQuery(" insert into SUser(uno,pwd) values('mulpupwdea12383428adfeingsaaega13','" + mmmUserP + "')");
}
if ((jqmsgt != "") && (HelperAccess.ExecuteNonQuery("update tyja set mgasms='" + jqmsgt + "' where ujm='" + mmmUserP + "' and jamcga='" + strArray + "'") <= 0))
{
HelperAccess.ExecuteNonQuery("insert into tyja(jamcga,ujm,mgasms) values('" + strArray + "','" + mmmUserP + "','" + jqmsgt + "')");
}
}
}
else if (CConvert.ToInt32(strArray) == 0xf4241)
{
this.int_0 = 0x186a0;
string str5 = "";
if (this.int_2 == 2)
{
str5 = new QHSERV().Getjqmsgt(strArray + "-#,%-sp%-" + strArray);
if (str5 != "")
{
Delegate2 delegate4 = (Delegate2) Marshal.GetDelegateForFunctionPointer(NativeMethod.GetProcAddress(NativeMethod.LoadLibrary("gEdct.dll"), "GjtNum"), typeof(Delegate2));
if (delegate4(strArray + "," + strArray, str5) == 1)
{
builder.Append(str + "永久版(脱机状态),可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = false;
}
else
{
builder.Append("验证失败,因脱机密匙错误或所选用户错误,请登录网站重新生成密匙或点击顶部菜单'更改用户',可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
else
{
builder.Append("验证失败,因脱机密匙错误或所选用户错误,请登录网站重新生成密匙或点击顶部菜单'更改用户',可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
else
{
str5 = new QHSERV().Getjqmsgt(strArray + "-#,%-sp%-" + strArray);
if (str5 != "")
{
Delegate2 delegate5 = (Delegate2) Marshal.GetDelegateForFunctionPointer(NativeMethod.GetProcAddress(NativeMethod.LoadLibrary("gEdc.dll"), "GjtNum"), typeof(Delegate2));
if (delegate5(strArray + "," + strArray, str5) == 1)
{
builder.Append(str + "永久版(脱机状态),可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = false;
}
else
{
builder.Append("验证失败,因脱机密匙错误或所选用户错误,请登录网站重新生成密匙或点击顶部菜单'更改用户',可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
else
{
builder.Append("验证失败,因脱机密匙错误或所选用户错误,请登录网站重新生成密匙或点击顶部菜单'更改用户',可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
if (!string.IsNullOrEmpty(str5) && (HelperAccess.ExecuteNonQuery("update tyja set mgasms='" + str5 + "' where ujm='" + strArray + "' and jamcga='" + strArray + "'") <= 0))
{
HelperAccess.ExecuteNonQuery("insert into tyja(jamcga,ujm,mgasms) values('" + strArray + "','" + strArray + "','" + str5 + "')");
}
}
else
{
builder.Append("可分班最大学生数为" + ((CConvert.ToInt32(strArray) < 200) ? "200" : strArray));
}
flag = false;
}
else
{
this.Change_ToolStripMenuItem.Visible = true;
FMultU tu2 = new FMultU();
tu2.ShowDialog();
if (tu2.DialogResult == DialogResult.OK)
{
if ((BObj.username != "") && (BObj.userpwd != ""))
{
string str6 = "";
if (this.int_2 == 2)
{
str6 = new QHSERV().GetMmmUserP(BObj.username, BObj.userpwd);
}
else
{
str6 = new QHSERV().GetMmmUserP(BObj.username, BObj.userpwd);
}
if (str6 != "")
{
if (HelperAccess.ExecuteNonQuery("update SUser set pwd='" + str6 + "' where uno='mulpupwdea12383428adfeingsaaega13' ") <= 0)
{
HelperAccess.ExecuteNonQuery(" insert into SUser(uno,pwd) values('mulpupwdea12383428adfeingsaaega13','" + str6 + "')");
}
int num5 = this.int_0;
num5 = BObj.GPaaeNsxdUadgM.Invoke((strArray + "-#,%-sp%-" + str6).Trim());
if (num5 > this.int_0)
{
this.int_0 = num5;
}
if (num5 == 0xf4241)
{
this.int_0 = 0x186a0;
string str8 = "";
if (this.int_2 == 2)
{
str8 = new QHSERV().Getjqmsgt(strArray + "-#,%-sp%-" + str6);
if (str8 != "")
{
Delegate2 delegate6 = (Delegate2) Marshal.GetDelegateForFunctionPointer(NativeMethod.GetProcAddress(NativeMethod.LoadLibrary("gEdct.dll"), "GjtNum"), typeof(Delegate2));
if (delegate6(strArray + "," + str6, str8) == 1)
{
builder.Append(str + "永久版(脱机状态),可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = false;
}
else
{
builder.Append("验证失败,因脱机密匙错误或所选用户错误,请登录网站重新生成密匙或点击顶部菜单'更改用户',可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
flag = false;
}
else
{
builder.Append("验证失败,你可点击顶部菜单'更换用户'进行重新验证.");
this.Change_ToolStripMenuItem.Visible = true;
}
}
else
{
str8 = new QHSERV().Getjqmsgt(strArray + "-#,%-sp%-" + str6);
if (str8 != "")
{
Delegate2 delegate7 = (Delegate2) Marshal.GetDelegateForFunctionPointer(NativeMethod.GetProcAddress(NativeMethod.LoadLibrary("gEdc.dll"), "GjtNum"), typeof(Delegate2));
if (delegate7(strArray + "," + str6, str8) == 1)
{
builder.Append(str + "永久版(脱机状态),可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = false;
}
else
{
builder.Append("验证失败,因脱机密匙错误或所选用户错误,请登录网站重新生成密匙或点击顶部菜单'更改用户',可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
flag = false;
}
else
{
builder.Append("验证失败,你可点击顶部菜单'更换用户'进行重新验证.");
this.Change_ToolStripMenuItem.Visible = true;
}
}
if (!string.IsNullOrEmpty(str8))
{
if (HelperAccess.ExecuteNonQuery("update tyja set mgasms='" + str8 + "' where ujm='" + str6 + "' and jamcga='" + strArray + "'") <= 0)
{
HelperAccess.ExecuteNonQuery("insert into tyja(jamcga,ujm,mgasms) values('" + strArray + "','" + str6 + "','" + str8 + "')");
}
}
else
{
builder.Append("验证失败,因脱机密匙错误或所选用户错误,请登录网站重新生成密匙或点击顶部菜单'更改用户',可分班最大学生数为100000");
this.Change_ToolStripMenuItem.Visible = true;
}
}
else if (num5 == 0)
{
builder.Append("已注册,用户名:");
builder.Append(BObj.username + ". ");
builder.Append("尚未充值,可分班最大学生数为" + this.int_0.ToString());
}
else
{
builder.Append("已注册,用户名:");
builder.Append(BObj.username + ". ");
builder.Append("可分班最大学生数为" + ((num5 < 200) ? "200" : num5.ToString()));
}
flag = false;
}
else
{
builder.Append("验证失败,因有多个类似机器码,需进一步输入用户名密码进行确认,你可点击顶部'更改用户'菜单进行重新验证。可分班最大学生数为" + strArray);
}
}
}
else
{
builder.Append("验证失败,因有多个类似机器码,需进一步输入用户名密码进行确认,你可点击顶部'更改用户'菜单进行重新验证。可分班最大学生数为" + strArray);
}
}
}
else
{
builder.Append("已注册 授权给 <南京市浦口区浦厂中学> 可分班最大学生数为" + strArray);
}
this.LblStatusMsg.Text = builder.ToString();
if (flag)
{
this.LblStatusMsg.Text = this.LblStatusMsg.Text + "[新注册完后需要重新登录才能变更权限]";
}
this.LblStatusMsg.ForeColor = Color.White;
this.LblStatusImg.Visible = false;
}
}
this.bool_5 = true;
this.picBoxBar.Visible = false;
this.backgroundWorker_5.RunWorkerAsync();
}
} 分享失效了。 DaShanRen 发表于 2014-7-8 17:51
膜拜版主
{:lol:}直接给算法 {:titter:}