From 69b4b758498b839aedbd82f7d4dee9d879ba65fe Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期四, 12 六月 2025 09:17:53 +0800 Subject: [PATCH] 修改开始检修和查看检修人员接口 --- project/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_UserFaceService.cs | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/project/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_UserFaceService.cs b/project/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_UserFaceService.cs index 71addb8..9fd656b 100644 --- a/project/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_UserFaceService.cs +++ b/project/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_UserFaceService.cs @@ -111,6 +111,8 @@ }; } + string str = Environment.CurrentDirectory; + byte[] data = Convert.FromBase64String(model.Base64Image); string basePath = AppDomain.CurrentDomain.BaseDirectory + "Record\\"; if (!Directory.Exists(basePath)) @@ -119,9 +121,9 @@ } string curPath = AppDomain.CurrentDomain.BaseDirectory + "Current\\"; - if (!Directory.Exists(basePath)) + if (!Directory.Exists(curPath)) { - Directory.CreateDirectory(basePath); + Directory.CreateDirectory(curPath); } string fileName = $"face_{DateTime.Now.ToString("yyyyMMddHHmmssfff")}.jpg"; -- Gitblit v1.9.3