This commit is contained in:
2024-07-16 17:26:49 +08:00
parent 97045e3bbe
commit 73e496b989
3 changed files with 13 additions and 4 deletions

View File

@@ -50,7 +50,16 @@ namespace Tnb.BasicData
stopwatch.Stop();
var elapsedMilliseconds = stopwatch.ElapsedMilliseconds;
ThirdResult thirdResult = JsonConvert.DeserializeObject<ThirdResult>(response);
ThirdResult thirdResult = null;
try
{
thirdResult = JsonConvert.DeserializeObject<ThirdResult>(response);
}
catch (Exception e)
{
thirdResult.Code = 500;
thirdResult.msgResult = response;
}
if (thirdResult.Code == 200)
{
await db.Updateable<ThirdWebapiRecord>()