|
|
@@ -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<object>.OK(Sample.FileQueryALL(DeviceName), st); |
|
|
|
List<QueryDeviceFileResponseBodyData> data = new List<QueryDeviceFileResponseBodyData>(); |
|
|
|
try |
|
|
|
{ |
|
|
|
data = Sample.FileQueryALL(DeviceName); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
return JsonMsg<object>.OK(data, st); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|