| | |
| | | await System.Threading.Tasks.Task.Delay(1000);
|
| | |
|
| | | //下载固件资源
|
| | | var pra = new { RequestVersion = Common.CommonPage.RequestVersion, DistributedMark = this.deviceFirmware.DistributedMark };
|
| | | this.deviceFirmwareByte = Common.CommonPage.Instance.RequestHttpsZigbeeBytesResultAsync("FirmwareMana/DownloadPlatformUploadFirmware", Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(pra)));
|
| | | if (this.deviceFirmware.ImagType != "-100")
|
| | | {
|
| | | var pra = new { RequestVersion = Common.CommonPage.RequestVersion, DistributedMark = this.deviceFirmware.DistributedMark };
|
| | | this.deviceFirmwareByte = Common.CommonPage.Instance.RequestHttpsZigbeeBytesResultAsync("FirmwareMana/DownloadPlatformUploadFirmware", Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(pra)));
|
| | | }
|
| | | else
|
| | | {
|
| | | //取本地模板
|
| | | this.deviceFirmwareByte = HdlFileLogic.Current.ReadFileByteContent(this.deviceFirmware.Name);
|
| | | }
|
| | | if (this.deviceFirmwareByte == null)
|
| | | {
|
| | | //设备固件资源下载失败
|