From a962f7bb8c46d054451cb1637f13678f248914c5 Mon Sep 17 00:00:00 2001 From: huyufei Date: Mon, 18 Mar 2024 15:03:22 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E5=88=9D=E5=A7=8B=E5=8C=96=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=E5=8F=8A=E5=AF=B9=E5=BA=94=E7=9A=84=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Code/SDK/GuruSDK.Ads.cs | 2 +- Runtime/Code/SDK/GuruSDK.cs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Runtime/Code/SDK/GuruSDK.Ads.cs b/Runtime/Code/SDK/GuruSDK.Ads.cs index e9e774a..a2fc020 100644 --- a/Runtime/Code/SDK/GuruSDK.Ads.cs +++ b/Runtime/Code/SDK/GuruSDK.Ads.cs @@ -215,7 +215,7 @@ namespace Guru /// internal static void StartAdService(AdsInitSpec spec = null) { - LogI($"StartAdService"); + LogI($"--- StartAdService :: IsBuyNoAds:{ADService.Instance.IsBuyNoAds}"); if (spec == null) { spec = AdsInitSpec.BuildDefault(InitConfig.AutoLoadWhenAdsReady, IsDebugMode); diff --git a/Runtime/Code/SDK/GuruSDK.cs b/Runtime/Code/SDK/GuruSDK.cs index 8635e0f..c1cc02a 100644 --- a/Runtime/Code/SDK/GuruSDK.cs +++ b/Runtime/Code/SDK/GuruSDK.cs @@ -201,7 +201,7 @@ namespace Guru private void InitAllServices() { bool useKeywords = false; - bool useIAP = true; + bool useIAP = _initConfig.IAPEnabled; bool appleReview = false; var services = GetRemoteServicesConfig(); @@ -209,8 +209,7 @@ namespace Guru { _appServicesConfig = services; useKeywords = _appServicesConfig.KeywordsEnabled(); - useIAP = _appServicesConfig.IsIAPEnabled(); - + useIAP = _initConfig.IAPEnabled && _appServicesConfig.IsIAPEnabled(); Try(() => {