From 65369c73bf3459a2ce212b6f80a6bf232d67e820 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 1 Apr 2025 17:32:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.API/appsettings.Test_HIR.json | 4 +- .../Service/Management/UserService.cs | 56 +++++++++---------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/IRaCIS.Core.API/appsettings.Test_HIR.json b/IRaCIS.Core.API/appsettings.Test_HIR.json index e0d309245..0791160d2 100644 --- a/IRaCIS.Core.API/appsettings.Test_HIR.json +++ b/IRaCIS.Core.API/appsettings.Test_HIR.json @@ -29,9 +29,9 @@ }, "BasicSystemConfig": { "OpenUserComplexPassword": true, - "OpenSignDocumentBeforeWork": false, + "OpenSignDocumentBeforeWork": true, "OpenTrialRelationDelete": true, - "OpenLoginLimit": false, + "OpenLoginLimit": true, "LoginMaxFailCount": 5, "LoginFailLockMinutes": 30, "AutoLoginOutMinutes": 120, diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs index 2ac776fa9..83dc87dd2 100644 --- a/IRaCIS.Core.Application/Service/Management/UserService.cs +++ b/IRaCIS.Core.Application/Service/Management/UserService.cs @@ -648,40 +648,40 @@ namespace IRaCIS.Core.Application.Service //本地测试地址接口 - var apiUrl = "http://192.168.40.88:8080/dock/userinfo"; - var headers = new Dictionary - { - { "Content-Type", "application/json" } // 根据需要添加其他头部信息 - }; + //var apiUrl = "http://192.168.40.88:8080/dock/userinfo"; + //var headers = new Dictionary + //{ + // { "Content-Type", "application/json" } // 根据需要添加其他头部信息 + //}; - var requestData = new - { - token = token, - appId = "third-hirs", - }; + //var requestData = new + //{ + // token = token, + // appId = "third-hirs", + //}; - var tjUserInfo = await RestClientAPI.PostAsync(apiUrl, requestData, headers); + //var tjUserInfo = await RestClientAPI.PostAsync(apiUrl, requestData, headers); #endregion #region 测试数据 - //var tjUserInfo = new TJUserInfoDto - //{ - // Code = "200", - // Msg = "操作成功", - // Success = true, - // Data = new TJUserInfoData - // { - // UserCode = "YS10138", - // UserName = "胡学梅", - // DeptCode = "2121", - // Sex = "未知", - // Birthday = "", - // Title = "", - // UserType = "doctor", - // Roles = new List { "pm", "crc" } - // } - //}; + var tjUserInfo = new TJUserInfoDto + { + Code = "200", + Msg = "操作成功", + Success = true, + Data = new TJUserInfoData + { + UserCode = "YS10138", + UserName = "胡学梅", + DeptCode = "2121", + Sex = "未知", + Birthday = "", + Title = "", + UserType = "doctor", + Roles = new List { "pm", "crc" } + } + }; #endregion