|
@@ -84,7 +84,7 @@ namespace BPASmartClient.IoT.Model |
|
|
//fileUpload.@params.extraParams.fileTag = new Dictionary<string, string> { {"Time", DateTime.Now.ToString("yyyy_M_d") },{"Name", "HBL.LogDir" } }; |
|
|
//fileUpload.@params.extraParams.fileTag = new Dictionary<string, string> { {"Time", DateTime.Now.ToString("yyyy_M_d") },{"Name", "HBL.LogDir" } }; |
|
|
|
|
|
|
|
|
dataV.IOT_Publish(dataV.FileUpLoadTopic, Tools.JsonConvertTools(fileUpload)); |
|
|
dataV.IOT_Publish(dataV.FileUpLoadTopic, Tools.JsonConvertTools(fileUpload)); |
|
|
MessageLog.GetInstance.Show($"[阿里云上传]:第[{i+1}]包数据,请求上传."); |
|
|
|
|
|
|
|
|
//MessageLog.GetInstance.Show($"[阿里云上传]:第[{i+1}]包数据,请求上传."); |
|
|
|
|
|
|
|
|
int count = 0; |
|
|
int count = 0; |
|
|
while (modelResult == null)//等待上传完成 |
|
|
while (modelResult == null)//等待上传完成 |
|
@@ -100,8 +100,13 @@ namespace BPASmartClient.IoT.Model |
|
|
|
|
|
|
|
|
; |
|
|
; |
|
|
|
|
|
|
|
|
if(modelResult.code==200) |
|
|
|
|
|
MessageLog.GetInstance.Show($"[阿里云上传]:第[{i + 1}]包,上传成功."); |
|
|
|
|
|
|
|
|
if (modelResult.code == 200) |
|
|
|
|
|
{ |
|
|
|
|
|
if (modelResult.data.complete) |
|
|
|
|
|
{ |
|
|
|
|
|
MessageLog.GetInstance.Show($"[阿里云上传]:文件上传完成,总长度[{modelResult.data.bSize}]字节."); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
else |
|
|
else |
|
|
MessageLog.GetInstance.Show($"[阿里云上传]:第[{i + 1}]包,上传失败.原因:{modelResult.message}"); |
|
|
MessageLog.GetInstance.Show($"[阿里云上传]:第[{i + 1}]包,上传失败.原因:{modelResult.message}"); |
|
|
; |
|
|
; |
|
|