|
|
|
@ -253,11 +253,6 @@ namespace SparkClient.Model.Services |
|
|
|
|
|
|
|
|
|
// 读取图片接口 |
|
|
|
|
List<string> imageNames = await RetrieveImageAsync(savePath); |
|
|
|
|
if (imageNames.Count == 0) |
|
|
|
|
{ |
|
|
|
|
// 采集状态失败 |
|
|
|
|
return new SocResultEntity { Status = StatusCodes.ImageFileReadFailure, Images = new List<string>() }; |
|
|
|
|
} |
|
|
|
|
// 采集状态接口 |
|
|
|
|
string acquisitionStatus = await CollectStatusAsync(); |
|
|
|
|
// 成功 |
|
|
|
@ -266,6 +261,11 @@ namespace SparkClient.Model.Services |
|
|
|
|
// 采集状态失败 |
|
|
|
|
return new SocResultEntity { Status = acquisitionStatus, Images = new List<string>() }; |
|
|
|
|
} |
|
|
|
|
if (imageNames.Count == 0) |
|
|
|
|
{ |
|
|
|
|
// 图片文件读取失败 |
|
|
|
|
return new SocResultEntity { Status = StatusCodes.ImageFileReadFailure, Images = new List<string>() }; |
|
|
|
|
} |
|
|
|
|
return new SocResultEntity { Status = acquisitionStatus, Images = imageNames, DeviceId = entity.DeviceId}; |
|
|
|
|
} |
|
|
|
|
catch (Exception e) |
|
|
|
|