From 5796c2c3a169137fbe0b221c3a0d7f2bf61ebc12 Mon Sep 17 00:00:00 2001 From: j502647092 Date: Wed, 5 Aug 2015 20:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=99=BB=E5=BD=95=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=20=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95=E6=B5=81?= =?UTF-8?q?=E7=A8=8B...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Authentication/CTZAuthenticator.cs | 2 +- CTZLauncher/MainWindow.xaml | 4 ++-- CTZLauncher/MainWindow.xaml.cs | 23 +++++++++---------- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/CTZLauncher/Authentication/CTZAuthenticator.cs b/CTZLauncher/Authentication/CTZAuthenticator.cs index 9c02b95..a09f7f3 100644 --- a/CTZLauncher/Authentication/CTZAuthenticator.cs +++ b/CTZLauncher/Authentication/CTZAuthenticator.cs @@ -68,7 +68,7 @@ namespace KMCCC.Authentication public bool getResult(string url) { - return http.Send(HttpMethod.GET, url) == "true" ? true : false; + return http.Send(HttpMethod.GET, url).Contains("true") ? true : false; } } } diff --git a/CTZLauncher/MainWindow.xaml b/CTZLauncher/MainWindow.xaml index ffe8d19..0862a0b 100644 --- a/CTZLauncher/MainWindow.xaml +++ b/CTZLauncher/MainWindow.xaml @@ -110,7 +110,7 @@ - + @@ -149,7 +149,7 @@ -