update: 初始化广告及对应的日志

deeplink
胡宇飞 2024-03-18 15:03:22 +08:00
parent 16a99087d9
commit a962f7bb8c
2 changed files with 3 additions and 4 deletions

View File

@ -215,7 +215,7 @@ namespace Guru
/// </summary>
internal static void StartAdService(AdsInitSpec spec = null)
{
LogI($"StartAdService");
LogI($"--- StartAdService :: IsBuyNoAds:{ADService.Instance.IsBuyNoAds}");
if (spec == null)
{
spec = AdsInitSpec.BuildDefault(InitConfig.AutoLoadWhenAdsReady, IsDebugMode);

View File

@ -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(() =>
{