From b8372311a0395c40dea1224d6c25e7247ba5c90d Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 3 Apr 2024 10:23:00 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Organization/Services/Implements/GainfoService.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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; }