From 6c323674079f85d870e7e8fc0d782d9d2dc4f1b4 Mon Sep 17 00:00:00 2001 From: shack2 <1341413415@qq.com> Date: Sat, 11 May 2019 18:41:06 +0800 Subject: [PATCH] update20190511 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复代理导入bug --- SuperSQLInjection/Main.cs | 11 +++++++---- SuperSQLInjection/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/SuperSQLInjection/Main.cs b/SuperSQLInjection/Main.cs index f191faf..7186c1f 100644 --- a/SuperSQLInjection/Main.cs +++ b/SuperSQLInjection/Main.cs @@ -311,7 +311,7 @@ public static String getSid() return sid; } - public static int version = 20190508; + public static int version = 20190511; public static string versionURL = "http://www.shack2.org/soft/getNewVersion?ENNAME=SSuperSQLInjection&NO=" + URLEncode.UrlEncode(getSid()) + "&VERSION=" + version; //检查更新 public void checkUpdate() @@ -7689,7 +7689,8 @@ private void Main_FormClosing(object sender, FormClosingEventArgs e) try { - XML.saveObject(AppDomain.CurrentDomain.BaseDirectory + "/proxy/proxy.xml", proxy); + String proxypath = AppDomain.CurrentDomain.BaseDirectory + "/proxy/proxy.xml"; + XML.saveObject(proxypath, proxy); } catch (Exception ex) { @@ -7698,14 +7699,16 @@ private void Main_FormClosing(object sender, FormClosingEventArgs e) try { - FileTool.SaveProxyList(AppDomain.CurrentDomain.BaseDirectory + "/proxy/proxylist.txt", this.proxy_List.Values); + String proxypath = AppDomain.CurrentDomain.BaseDirectory + "/proxy/proxylist.txt"; + File.Delete(proxypath); + FileTool.SaveProxyList(proxypath, this.proxy_List.Values); } catch (Exception ex) { Tools.SysLog("保存代理池发生错误!" + ex.Message); } - System.Environment.Exit(0); + Application.Exit(); } private void tsmi_about_Click(object sender, EventArgs e) diff --git a/SuperSQLInjection/Properties/AssemblyInfo.cs b/SuperSQLInjection/Properties/AssemblyInfo.cs index be5a870..487afb9 100644 --- a/SuperSQLInjection/Properties/AssemblyInfo.cs +++ b/SuperSQLInjection/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值, // 方法是按如下所示使用“*”: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.2019.05.08")] -[assembly: AssemblyFileVersion("1.2019.05.08")] +[assembly: AssemblyVersion("1.2019.05.11")] +[assembly: AssemblyFileVersion("1.2019.05.11")]