| | |
| | | } |
| | | else |
| | | { |
| | | return WebResponseContent.Instance.Error("未找到匹配的用户信息"); |
| | | return WebResponseContent.Instance.Error($"未找到匹配的用户信息,{result}"); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | return WebResponseContent.Instance.Error("未找到匹配的人脸信息"); |
| | | return WebResponseContent.Instance.Error($"未找到匹配的人脸信息,{result}"); |
| | | } |
| | | } |
| | | else |
| | |
| | | }; |
| | | } |
| | | |
| | | string str = Environment.CurrentDirectory; |
| | | |
| | | byte[] data = Convert.FromBase64String(model.Base64Image); |
| | | string basePath = AppDomain.CurrentDomain.BaseDirectory + "Record\\"; |
| | | if (!Directory.Exists(basePath)) |
| | |
| | | } |
| | | |
| | | 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"; |