diff --git a/Tiobon.Core.Api/Controllers/LoginController.cs b/Tiobon.Core.Api/Controllers/LoginController.cs index 24f7b4e0..3fa15ab5 100644 --- a/Tiobon.Core.Api/Controllers/LoginController.cs +++ b/Tiobon.Core.Api/Controllers/LoginController.cs @@ -68,9 +68,7 @@ namespace Tiobon.Core.Controllers suc = true; } else - { jwtStr = "login fail!!!"; - } return new ServiceResult() { @@ -107,14 +105,12 @@ namespace Tiobon.Core.Controllers suc = true; } else - { jwtStr = "login fail!!!"; - } - var result = new - { - data = new { success = suc, token = jwtStr } - }; + //var result = new + //{ + // data = new { success = suc, token = jwtStr } + //}; return new ServiceResult() { @@ -183,9 +179,7 @@ namespace Tiobon.Core.Controllers return Success(token, "获取成功"); } else - { return Failed("认证失败"); - } } [HttpGet] @@ -292,9 +286,7 @@ namespace Tiobon.Core.Controllers public async Task SwgLogin([FromBody] SwaggerLoginRequest loginRequest) { if (loginRequest is null) - { return new { result = false }; - } try {