Compare commits

...

2 Commits

Author SHA1 Message Date
160867b037 程序集 2024-12-24 22:50:18 +08:00
d57e3c3382 axihttp图片下载问题 2024-12-24 22:48:55 +08:00
3 changed files with 13 additions and 10 deletions

View File

@ -1,12 +1,19 @@
{
"name": "AxibugEmuOnline.Client",
"rootNamespace": "",
"references": [
"UIEffect",
"AxiReplay",
"Unity.Postprocessing.Runtime"
"Unity.Postprocessing.Runtime",
"VirtualNes.Core"
],
"optionalUnityReferences": [],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": true
"allowUnsafeCode": true,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

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);
}
else
{
callback(request.downloadHandler.data);
}
else
callback(null);
//downloadRequest = UnityWebRequest.Get($"{App.httpAPI.WebHost}/{webData.url}");
//yield return downloadRequest.SendWebRequest();