| | |
| | | /// <returns></returns> |
| | | bool DownloadSomeDataBackup (string folderId, BackupFileInfoRes file) |
| | | { |
| | | var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject (new BackupFileDownObj () { |
| | | var requestJson = HttpUtil.GetSignRequestJson (new BackupFileDownObj () { |
| | | folderId = folderId, |
| | | fileId = file.id, |
| | | homeId = UserConfig.Instance.CurrentRegion.Id |
| | | }); |
| | | var revertObj = HttpUtil.RequestHttpsDownload (NewAPI.API_POST_File_Down, requestJson, null, UserConfig.Instance.CurrentRegion.regionUrl); |
| | | |
| | | if (revertObj != null) { |
| | | if (revertObj != null && revertObj.Length > 0) { |
| | | Utlis.WriteLine ("DownloadSomeDataBackup: " + file.fileName); |
| | | IO.FileUtils.WriteFileByBytes (file.fileName, revertObj); |
| | | return true; |