From fddb6478b8716f9384c4c82c3ccfcec579600ee9 Mon Sep 17 00:00:00 2001 From: ProxySU Date: Sat, 28 Mar 2020 23:55:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BF=9D=E5=AD=98=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProxySU/ResultClientInformation.xaml.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ProxySU/ResultClientInformation.xaml.cs b/ProxySU/ResultClientInformation.xaml.cs index 999451e..7250d2c 100644 --- a/ProxySU/ResultClientInformation.xaml.cs +++ b/ProxySU/ResultClientInformation.xaml.cs @@ -181,11 +181,12 @@ namespace ProxySU v2rayNjsonObject["ps"] = v2rayNjsonObject["add"]; //设置备注 //MessageBox.Show(v2rayNjsonObject["v"].ToString()); - saveFileFolder = v2rayNjsonObject["ps"].ToString(); + string saveFileFolderFirst = v2rayNjsonObject["ps"].ToString(); int num = 1; - while(Directory.Exists(@"config\" + saveFileFolder)) + saveFileFolder = saveFileFolderFirst; + while (Directory.Exists(@"config\" + saveFileFolder)) { - saveFileFolder = saveFileFolder + "_copy_" + num.ToString(); + saveFileFolder = saveFileFolderFirst + "_copy_" + num.ToString(); num++; } CheckDir(@"config\" + saveFileFolder);