This commit is contained in:
2024-07-26 11:56:56 +08:00
parent f07f9da126
commit fe6a1fc0ce
3 changed files with 112 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
using System.Diagnostics;
using JNPF.Common.Core.Manager;
using JNPF.Common.Extension;
using JNPF.DependencyInjection;
using JNPF.DynamicApiController;
using JNPF.Extras.CollectiveOAuth.Utils;
@@ -53,7 +54,14 @@ namespace Tnb.BasicData
ThirdResult thirdResult = new ThirdResult();
try
{
thirdResult = JsonConvert.DeserializeObject<ThirdResult>(response);
if (response != null && !response.IsEmpty())
{
thirdResult = JsonConvert.DeserializeObject<ThirdResult>(response);
}
else
{
thirdResult.Code = 500;
}
}
catch (Exception e)
{