|
@@ -882,11 +882,13 @@ namespace TEAMModelOS.SDK
|
|
|
|
|
|
///获取真实的名称
|
|
|
var content = new StringContent(tmdids.Select(x => x.id).ToJsonString(), Encoding.UTF8, "application/json");
|
|
|
- string json = await _coreAPIHttpService.GetUserInfos(content);
|
|
|
- if (!string.IsNullOrWhiteSpace(json))
|
|
|
+ string json = null;
|
|
|
+ try
|
|
|
{
|
|
|
- try
|
|
|
+ json = await _coreAPIHttpService.GetUserInfos(content);
|
|
|
+ if (!string.IsNullOrWhiteSpace(json))
|
|
|
{
|
|
|
+
|
|
|
List<TmdInfo> tmdInfos = json.ToObject<List<TmdInfo>>();
|
|
|
if (tmdInfos.IsNotEmpty())
|
|
|
{
|
|
@@ -911,11 +913,12 @@ namespace TEAMModelOS.SDK
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
- catch (Exception ex)
|
|
|
- {
|
|
|
- await _dingDing.SendBotMsg($"{_coreAPIHttpService.options.Get("Default").location}用户转换失败:{_coreAPIHttpService.options.Get("Default").url}{json}\n {ex.StackTrace}", GroupNames.成都开发測試群組);
|
|
|
- }
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ await _dingDing.SendBotMsg($"{_coreAPIHttpService.options.Get("Default").location}用户转换失败:{_coreAPIHttpService.options.Get("Default").url}{json}\n {ex.Message}{ex.StackTrace}", GroupNames.成都开发測試群組);
|
|
|
}
|
|
|
tmdids.ForEach(x =>
|
|
|
{
|