master #75

Closed
Alienjack wants to merge 510 commits from Alienjack/AxibugEmuOnline_old:master into master
2 changed files with 3 additions and 7 deletions
Showing only changes of commit d57e3c3382 - Show all commits

View File

@ -36,7 +36,7 @@ namespace AxibugEmuOnline.Client
} }
AxiHttpProxy.ShowAxiHttpDebugInfo(request.downloadHandler); AxiHttpProxy.ShowAxiHttpDebugInfo(request.downloadHandler);
if (request.downloadHandler.Err != null) if (request.downloadHandler.Err == null)
{ {
Directory.CreateDirectory(path); Directory.CreateDirectory(path);
File.WriteAllBytes($"{path}/{url.GetHashCode()}", request.downloadHandler.data); File.WriteAllBytes($"{path}/{url.GetHashCode()}", request.downloadHandler.data);

View File

@ -137,13 +137,9 @@ namespace AxibugEmuOnline.Client
downloadRequest = null; downloadRequest = null;
if (request.downloadHandler.Err != null) if (request.downloadHandler.Err != null)
{ callback(request.downloadHandler.data);
callback(null);
}
else else
{ callback(null);
callback(request.downloadHandler.data);
}
//downloadRequest = UnityWebRequest.Get($"{App.httpAPI.WebHost}/{webData.url}"); //downloadRequest = UnityWebRequest.Get($"{App.httpAPI.WebHost}/{webData.url}");
//yield return downloadRequest.SendWebRequest(); //yield return downloadRequest.SendWebRequest();