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)