fix: 修正IAP判定标志位
parent
dd4f95ab1d
commit
a4bb381856
|
|
@ -16,8 +16,6 @@ namespace Guru
|
||||||
public string[] products;
|
public string[] products;
|
||||||
|
|
||||||
//-------------------------------- 配置检测 --------------------------------
|
//-------------------------------- 配置检测 --------------------------------
|
||||||
public bool IsIAPEnabled() => products != null && products.Length > 0;
|
|
||||||
|
|
||||||
public bool IsAmazonAndroidEnabled() => ad_settings != null &&
|
public bool IsAmazonAndroidEnabled() => ad_settings != null &&
|
||||||
ad_settings.amazon_ids_android != null &&
|
ad_settings.amazon_ids_android != null &&
|
||||||
ad_settings.amazon_ids_android.Length > 0;
|
ad_settings.amazon_ids_android.Length > 0;
|
||||||
|
|
@ -36,7 +34,9 @@ namespace Guru
|
||||||
public bool IsMolocoIOSEnabled() => ad_settings != null &&
|
public bool IsMolocoIOSEnabled() => ad_settings != null &&
|
||||||
ad_settings.moloco_ids_ios != null &&
|
ad_settings.moloco_ids_ios != null &&
|
||||||
ad_settings.moloco_ids_ios.Length > 0;
|
ad_settings.moloco_ids_ios.Length > 0;
|
||||||
//-------------------------------- 配置检测 --------------------------------
|
public bool IsIAPEnabled() => app_settings != null && app_settings.enable_iap
|
||||||
|
&& products != null && products.Length > 0;
|
||||||
|
//-------------------------------- 配置检测 -------------------------------
|
||||||
}
|
}
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
|
|
@ -56,7 +56,7 @@ namespace Guru
|
||||||
public bool enable_firebase = true;
|
public bool enable_firebase = true;
|
||||||
public bool enable_facebook = true;
|
public bool enable_facebook = true;
|
||||||
public bool enable_adjust = true;
|
public bool enable_adjust = true;
|
||||||
public bool enable_iap = true;
|
public bool enable_iap = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ namespace Guru
|
||||||
private void OnFirebaseReady()
|
private void OnFirebaseReady()
|
||||||
{
|
{
|
||||||
LogI($"--- Firebase complete ---");
|
LogI($"--- Firebase complete ---");
|
||||||
if (InitConfig.IAPEnabled)
|
if (_appServicesConfig.IsIAPEnabled())
|
||||||
{
|
{
|
||||||
// LogI($"--- #2 Init IAP ---");
|
// LogI($"--- #2 Init IAP ---");
|
||||||
InitIAP(_initConfig.GoogleKeys, _initConfig.AppleRootCerts); // 初始化IAP
|
InitIAP(_initConfig.GoogleKeys, _initConfig.AppleRootCerts); // 初始化IAP
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ namespace Guru
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool ShowDebugLog = false;
|
public bool ShowDebugLog = false;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 运控参数的默认配置
|
/// 云控参数的默认配置
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public Dictionary<string, object> DefaultRemoteData = new Dictionary<string, object>();
|
public Dictionary<string, object> DefaultRemoteData = new Dictionary<string, object>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue