update: 初始化广告及对应的日志
parent
16a99087d9
commit
a962f7bb8c
|
|
@ -215,7 +215,7 @@ namespace Guru
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static void StartAdService(AdsInitSpec spec = null)
|
internal static void StartAdService(AdsInitSpec spec = null)
|
||||||
{
|
{
|
||||||
LogI($"StartAdService");
|
LogI($"--- StartAdService :: IsBuyNoAds:{ADService.Instance.IsBuyNoAds}");
|
||||||
if (spec == null)
|
if (spec == null)
|
||||||
{
|
{
|
||||||
spec = AdsInitSpec.BuildDefault(InitConfig.AutoLoadWhenAdsReady, IsDebugMode);
|
spec = AdsInitSpec.BuildDefault(InitConfig.AutoLoadWhenAdsReady, IsDebugMode);
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,7 @@ namespace Guru
|
||||||
private void InitAllServices()
|
private void InitAllServices()
|
||||||
{
|
{
|
||||||
bool useKeywords = false;
|
bool useKeywords = false;
|
||||||
bool useIAP = true;
|
bool useIAP = _initConfig.IAPEnabled;
|
||||||
bool appleReview = false;
|
bool appleReview = false;
|
||||||
|
|
||||||
var services = GetRemoteServicesConfig();
|
var services = GetRemoteServicesConfig();
|
||||||
|
|
@ -209,8 +209,7 @@ namespace Guru
|
||||||
{
|
{
|
||||||
_appServicesConfig = services;
|
_appServicesConfig = services;
|
||||||
useKeywords = _appServicesConfig.KeywordsEnabled();
|
useKeywords = _appServicesConfig.KeywordsEnabled();
|
||||||
useIAP = _appServicesConfig.IsIAPEnabled();
|
useIAP = _initConfig.IAPEnabled && _appServicesConfig.IsIAPEnabled();
|
||||||
|
|
||||||
|
|
||||||
Try(() =>
|
Try(() =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue