axihttp图片下载问题

This commit is contained in:
sin365 2024-12-24 22:48:55 +08:00
parent 294e6ac177
commit d57e3c3382
2 changed files with 3 additions and 7 deletions

View File

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

View File

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