From e6b5e149780fc1a231c55e7fee1fab279b2878a7 Mon Sep 17 00:00:00 2001 From: 10191 <506754232@qq.com> Date: Sat, 6 Sep 2025 14:38:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E8=84=B8=E8=AF=86=E5=88=AB=E9=A2=86?= =?UTF-8?q?=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FineUIPro.Web/common/WelderManage/WelderSave.aspx.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HJGL_DS/FineUIPro.Web/common/WelderManage/WelderSave.aspx.cs b/HJGL_DS/FineUIPro.Web/common/WelderManage/WelderSave.aspx.cs index c40caf3..1968e8f 100644 --- a/HJGL_DS/FineUIPro.Web/common/WelderManage/WelderSave.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/common/WelderManage/WelderSave.aspx.cs @@ -159,7 +159,7 @@ } if (!string.IsNullOrEmpty(person.PhotoUrl)) { - imgPhoto1.ImageUrl = person.PhotoUrl; + imgPhoto1.ImageUrl = "~/" + person.PhotoUrl; } } else @@ -260,7 +260,7 @@ public string PersonFace(Model.HJGL_BS_Welder person) { string message = string.Empty; - string filePath = Server.MapPath(person.PhotoUrl); + string filePath = Server.MapPath("~/")+person.PhotoUrl; List kqFace = null; try { @@ -336,7 +336,7 @@ else message = "识别不到人脸"; if (isOK) { - var faceResult = FaceClass.add(person.WED_ID, person.IdentityCard, System.Configuration.ConfigurationManager.AppSettings["HJGLUrl"].ToString() + person.PhotoUrl.Replace("~\\", "").Replace("\\","/"), AccessToken.getAccessToken()); + var faceResult = FaceClass.add(person.WED_ID, person.IdentityCard, System.Configuration.ConfigurationManager.AppSettings["HJGLUrl"].ToString()+ person.PhotoUrl.Replace("~\\", "").Replace("\\","/"), AccessToken.getAccessToken()); var face = JsonConvert.DeserializeObject(faceResult); // JsonConvert.DeserializeObject(myPunishItem); if (face.error_code == 0 || face.error_code == 223105)