fix 移除证卡api调用
This commit is contained in:
@@ -284,7 +284,7 @@ public class GainfoFaceService : IGainfoFaceService
|
||||
|
||||
var userId = _currentUser.GetIntSubjectId();
|
||||
|
||||
//await DetectFaceImageQualityAsync(request.Face, gainfo.Factory);
|
||||
await DetectFaceImageQualityAsync(request.Face, gainfo.Factory);
|
||||
|
||||
var taskType = face == null ? DeviceTaskEnumType.Add : DeviceTaskEnumType.Update;
|
||||
if (face == null)
|
||||
@@ -363,18 +363,18 @@ public class GainfoFaceService : IGainfoFaceService
|
||||
_logger.LogError(e, "上传face数据到sap失败:{message}", e.Message);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
await _hainingApi.UploadAsync(new HainingApiUploadRequest()
|
||||
{
|
||||
Code = gainfo.Code,
|
||||
Base64 = request.Face
|
||||
});
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_logger.LogError(e, "上传face数据到老系统失败:{message}", e.Message);
|
||||
}
|
||||
// try
|
||||
// {
|
||||
// await _hainingApi.UploadAsync(new HainingApiUploadRequest()
|
||||
// {
|
||||
// Code = gainfo.Code,
|
||||
// Base64 = request.Face
|
||||
// });
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// _logger.LogError(e, "上传face数据到老系统失败:{message}", e.Message);
|
||||
// }
|
||||
|
||||
//生成任务
|
||||
await _devicePermissionService.GenerateDeviceTasksAsync(gainfo.No, taskType, "照片上传生成");
|
||||
|
||||
Reference in New Issue
Block a user