图片地址修改

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

View File

@ -24,9 +24,9 @@
<add key="SystemCode" value="HJCLGL"/>
<add key="http" value="http://localhost/test/"/>
<!--BAIDU AI配置-->
<add key="APP_ID" value="23957173"/>
<add key="API_KEY" value="G2aNlnPXNAoGLF4DdcyVFORI"/>
<add key="SECRET_KEY" value="FdkDmVNHnZn7191YK9TrMIpEj0g4e5Nk"/>
<add key="APP_ID" value="119624563"/>
<add key="API_KEY" value="qm0iFO9OTHqx5dt5dNIKuvIE"/>
<add key="SECRET_KEY" value="NwA68AnLM9SwEcbB2ONCu6cagy2czzVc"/>
<!--人脸检测参数-->
<!--人脸活体检测参数1最好0最差 建议0.995 -->
<add key="BD_face_liveness" value="0.3"/>

View File

@ -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)