check some bugs

This commit is contained in:
yubaolee
2016-07-11 18:21:26 +08:00
parent 9a328c9c90
commit 994ab81ebb
10 changed files with 100 additions and 150 deletions

View File

@@ -77,7 +77,7 @@ namespace OpenAuth.App.SSO
/// <param name="username"><3E>û<EFBFBD><C3BB><EFBFBD></param>
/// <param name="pwd"><3E><><EFBFBD><EFBFBD></param>
/// <returns>System.String.</returns>
public static string Login(string appKey, string username, string pwd)
public static LoginResult Login(string appKey, string username, string pwd)
{
var requestUri = "/SSO/Login/Check";
@@ -91,18 +91,12 @@ namespace OpenAuth.App.SSO
}, requestUri);
var result = JsonHelper.Instance.Deserialize<LoginResult>(value);
if (result.Success)
{
return result.Token;
}
else
{
return string.Empty;
}
return result;
}
catch (Exception ex)
{
return string.Empty;
return null;
}
}