图片地址修改

This commit is contained in:
2025-07-28 10:33:59 +08:00
parent 0cb11aa4cc
commit bd375364d4
2 changed files with 6 additions and 6 deletions
@@ -252,10 +252,10 @@
}
#endregion
public static string PersonFace(Model.HJGL_BS_Welder person)
public string PersonFace(Model.HJGL_BS_Welder person)
{
string message = string.Empty;
string filePath = ConfigurationManager.AppSettings["localRoot"] + person.PhotoUrl;
string filePath = Server.MapPath("~/") + person.PhotoUrl;
List<SgManager.AI.faceResult> kqFace = null;
try
{
@@ -330,7 +330,7 @@
else message = "识别不到人脸";
if (isOK)
{
var faceResult = FaceClass.add(person.WED_ID, person.IdentityCard, System.Configuration.ConfigurationManager.AppSettings["CEMS_IMG_URL"].ToString() + person.PhotoUrl, AccessToken.getAccessToken());
var faceResult = FaceClass.add(person.WED_ID, person.IdentityCard, System.Configuration.ConfigurationManager.AppSettings["HJGLUrl"].ToString() + person.PhotoUrl, AccessToken.getAccessToken());
var face = JsonConvert.DeserializeObject<dynamic>(faceResult);
// JsonConvert.DeserializeObject<dynamic>(myPunishItem);
if (face.error_code == 0 || face.error_code == 223105)