mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
UpdateData
UpdateData
This commit is contained in:
@@ -98,7 +98,7 @@ namespace GameMain
|
||||
return;
|
||||
}
|
||||
|
||||
var checkVersionUrl = SettingsUtils.GetAppUpdateUrl();
|
||||
var checkVersionUrl = SettingsUtils.GetUpdateDataUrl();
|
||||
|
||||
UILoadMgr.Show(UIDefine.UILoadUpdate, string.Format(LoadText.Instance.Label_Load_Checking, _curTryCount));
|
||||
if (string.IsNullOrEmpty(checkVersionUrl))
|
||||
|
@@ -198,11 +198,10 @@ public class FrameworkGlobalSettings
|
||||
get { return m_ResourceVersionFileName; }
|
||||
}
|
||||
|
||||
public string CheckVersionUrl = "http://127.0.0.1/Resources/{0}Version.txt";
|
||||
public string WindowsAppUrl = "http://127.0.0.1";
|
||||
public string MacOSAppUrl = "http://127.0.0.1";
|
||||
public string IOSAppUrl = "http://127.0.0.1";
|
||||
public string AndroidAppUrl = "http://127.0.0.1";
|
||||
public string WindowsUpdateDataUrl = "http://127.0.0.1";
|
||||
public string MacOSUpdateDataUrl = "http://127.0.0.1";
|
||||
public string IOSUpdateDataUrl = "http://127.0.0.1";
|
||||
public string AndroidUpdateDataUrl = "http://127.0.0.1";
|
||||
[Header("Server")] [SerializeField] private string m_CurUseServerChannel;
|
||||
|
||||
public string CurUseServerChannel
|
||||
|
@@ -39,17 +39,17 @@ public static class SettingsUtils
|
||||
}
|
||||
|
||||
|
||||
public static string GetAppUpdateUrl()
|
||||
public static string GetUpdateDataUrl()
|
||||
{
|
||||
string url = null;
|
||||
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
|
||||
url = FrameworkGlobalSettings.WindowsAppUrl;
|
||||
url = FrameworkGlobalSettings.WindowsUpdateDataUrl;
|
||||
#elif UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX
|
||||
url = FrameworkGlobalSettings.MacOSAppUrl;
|
||||
url = FrameworkGlobalSettings.MacOSUpdateDataUrl;
|
||||
#elif UNITY_IOS
|
||||
url = FrameworkGlobalSettings.IOSAppUrl;
|
||||
url = FrameworkGlobalSettings.IOSUpdateDataUrl;
|
||||
#elif UNITY_ANDROID
|
||||
url = FrameworkGlobalSettings.AndroidAppUrl;
|
||||
url = FrameworkGlobalSettings.AndroidUpdateDataUrl;
|
||||
#endif
|
||||
return url;
|
||||
}
|
||||
|
Reference in New Issue
Block a user