fix 异常处理

This commit is contained in:
2024-04-03 10:23:00 +08:00
parent 726c013193
commit b8372311a0

View File

@@ -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;
}