From 769d1d6a2b681154db803eac0514dc9c5c686514 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Tue, 16 Apr 2024 15:16:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tiobon.Core.Api/Controllers/LoginController.cs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) 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 {