在线参数接口

This commit is contained in:
玉峰 2025-09-01 16:33:14 +08:00
parent 639865ca86
commit e76cb79387
2 changed files with 25 additions and 1 deletions

View File

@ -75,6 +75,30 @@ public class AppSDKManager : MonoBehaviour
} }
} }
#region 线
public bool GetRemoteConfigBool(string key, bool defaultValue = false)
{
return FireBaseRemoteConfigManager.Instance.GetRemoteConfigBool(key, defaultValue);
}
public int GetRemoteConfigInt(string key, int defaultValue = 0)
{
return FireBaseRemoteConfigManager.Instance.GetRemoteConfigInt(key, defaultValue);
}
public string GetRemoteConfigString(string key, string defaultValue = "")
{
return FireBaseRemoteConfigManager.Instance.GetRemoteConfigString(key, defaultValue);
}
public float GetRemoteConfigFloat(string key, float defaultValue = 0)
{
return FireBaseRemoteConfigManager.Instance.GetRemoteConfigFloat(key, defaultValue);
}
#endregion
#region EFSDK #region EFSDK

View File

@ -144,7 +144,7 @@ public class FireBaseRemoteConfigManager : NormalSingleton<FireBaseRemoteConfigM
/// <param name="key"></param> /// <param name="key"></param>
/// <param name="defaultValue"></param> /// <param name="defaultValue"></param>
/// <returns></returns> /// <returns></returns>
public float GetRemoteConfigBool(string key, float defaultValue = 0, bool IsEncrypt = false) public float GetRemoteConfigFloat(string key, float defaultValue = 0, bool IsEncrypt = false)
{ {
try try
{ {