release: 1.4.2

This commit is contained in:
2026-03-18 17:16:40 +08:00
parent 40604ebe19
commit 10a50a6f8b
9 changed files with 260 additions and 5 deletions

View File

@@ -26,12 +26,23 @@ namespace AnyThink.Scripts.IntegrationManager.Editor
public void loadHotFixData()
{
if (!ATConfig.EnableEditorTools)
{
ATLog.log("loadHotFixData() >>> AnyThinkSDKEditor disabled, skip hotfix check.");
return;
}
var downloadUrl = ATNetInfo.getHotfixPluginDownloadUrl(ATConfig.PLUGIN_VERSION);
ATLog.log("loadHotFixData() >>> downloadUrl: " + downloadUrl);
ATEditorCoroutine.startCoroutine(loadHotFixDataWithIEnumerator(downloadUrl));
}
private IEnumerator loadHotFixDataWithIEnumerator(string url) {
if (!ATConfig.EnableEditorTools)
{
yield break;
}
var hotFixDataRequest = UnityWebRequest.Get(url);
var webRequest = hotFixDataRequest.SendWebRequest();
while (!webRequest.isDone)
@@ -86,6 +97,11 @@ namespace AnyThink.Scripts.IntegrationManager.Editor
}
private IEnumerator loadHotFixPlugin(HotfixPluginData hotFixDataObj) {
if (!ATConfig.EnableEditorTools)
{
yield break;
}
var path = Path.Combine(Application.temporaryCachePath, hotFixDataObj.file_name);
ATLog.log("downloadPluginWithEnumerator() >>> path: " + path);
#if UNITY_2017_2_OR_NEWER
@@ -161,4 +177,4 @@ namespace AnyThink.Scripts.IntegrationManager.Editor
return JsonUtility.FromJson<HotfixPluginData>(json);
}
}
}
}