From 2a817208938c2298f06cc74f505de8aaa4a9cd8e Mon Sep 17 00:00:00 2001 From: fyf Date: Tue, 31 May 2022 12:55:19 +0800 Subject: [PATCH] ty --- DataVAPI/Controllers/LogController.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/DataVAPI/Controllers/LogController.cs b/DataVAPI/Controllers/LogController.cs index 04b0b37..703b126 100644 --- a/DataVAPI/Controllers/LogController.cs +++ b/DataVAPI/Controllers/LogController.cs @@ -6,6 +6,7 @@ using DataVAPI.UpAndDown; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; +using static AlibabaCloud.SDK.Iot20180120.Models.QueryDeviceFileResponseBody; namespace DataVAPI.Controllers { @@ -275,7 +276,16 @@ namespace DataVAPI.Controllers } else { - return JsonMsg.OK(Sample.FileQueryALL(DeviceName), st); + List data = new List(); + try + { + data = Sample.FileQueryALL(DeviceName); + } + catch (Exception ex) + { + + } + return JsonMsg.OK(data, st); } } catch (Exception ex)