UpdateData

UpdateData
This commit is contained in:
ALEXTANG
2023-05-09 20:56:33 +08:00
parent 25e2617782
commit 878a05b614
3 changed files with 10 additions and 11 deletions

View File

@@ -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))

View File

@@ -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

View File

@@ -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;
}