copy from "\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_UserService.cs"
copy to project/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_UserService.cs
Îļþ´Ó ÏîÄ¿´úÂë/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_UserService.cs ¸´ÖÆ |
| | |
| | | using Newtonsoft.Json; |
| | | using WIDESEAWCS_Common; |
| | | using FaceAI; |
| | | using System.Runtime.InteropServices; |
| | | |
| | | namespace WIDESEAWCS_SystemServices |
| | | { |
| | |
| | | _menuService = menuService; |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | #region |
| | |
| | | { |
| | | try |
| | | { |
| | | string result = FaceCompare.FaceCompareFeature(file1, file2); |
| | | return result; |
| | | var result = FaceCompare.match(file1, file2); |
| | | string buf = Marshal.PtrToStringAnsi(result); |
| | | return buf; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | throw e; |
| | | return e.Message; |
| | | } |
| | | } |
| | | public override WebResponseContent UpdateData(SaveModel saveModel) |
| | |
| | | return WebResponseContent.Instance.Error("å é¤ç¨æ·å¤±è´¥ï¼" + ex.Message); |
| | | } |
| | | } |
| | | |
| | | public WebResponseContent ReturnDeptid(string account) |
| | | { |
| | | try |
| | | { |
| | | var loginer = BaseDal.QueryData(x => x.UserName == account).FirstOrDefault(); |
| | | if (loginer == null) |
| | | return new WebResponseContent { Status = false, Message = "ç¨æ·ä¸åå¨" }; |
| | | return new WebResponseContent { Status = true, Data = loginer.Dept_Id }; |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | |
| | | return new WebResponseContent { Status = false, Message="失败"}; |
| | | } |
| | | } |
| | | } |
| | | } |