diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs index c82d86d1..a49a3ec2 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs @@ -381,8 +381,14 @@ public class GainfoService : IGainfoService foreach (var userCode in request.UserCodes) { - var faceUrl = await GetFaceByUserCodeAsync(userCode); - faceDictionary.Add(userCode, faceUrl); + try + { + var faceUrl = await GetFaceByUserCodeAsync(userCode); + faceDictionary.Add(userCode, faceUrl); + } + catch (Exception) + { + } } return faceDictionary; }