diff --git a/popcorn/Assets/Joypac/Scripts/JoypacAnalyticsManager.cs b/popcorn/Assets/Joypac/Scripts/JoypacAnalyticsManager.cs index e1ac1a50..2fc5a052 100644 --- a/popcorn/Assets/Joypac/Scripts/JoypacAnalyticsManager.cs +++ b/popcorn/Assets/Joypac/Scripts/JoypacAnalyticsManager.cs @@ -451,6 +451,7 @@ public class JoypacAnalyticsManager : MonoBehaviour AdjustConfig config = new AdjustConfig(DynamicStringsKey.Instance.ADJUST_APP_TOKEN, AdjustEnvironment.Production, true); config.setLogLevel(AdjustLogLevel.Suppress); config.setLogDelegate(msg => LogTool.DebugLog(msg)); + config.setNeedsCost(true); if (ConstStringKey.ADJUST_APP_SECRET != 1 || ConstStringKey.ADJUST_APP_INFO1 == 1 || ConstStringKey.ADJUST_APP_INFO2 == 1 || ConstStringKey.ADJUST_APP_INFO3 == 1 || ConstStringKey.ADJUST_APP_INFO4 == 1) { Debug.LogError("必填项没有手动修改!!【测试期间可忽略】"); @@ -948,9 +949,11 @@ public class JoypacAdjustFinder public string adjust_costType = ""; //finder不支持double [SerializeField] - public float? adjust_costAmount = null; + public float adjust_costAmount = 0.0f; [SerializeField] public string adjust_costCurrency = ""; + [SerializeField] + public string version = ""; public JoypacAdjustFinder(AdjustAttribution attribution) { @@ -964,8 +967,12 @@ public class JoypacAdjustFinder adjust_trackerName = attribution.trackerName; adjust_campaign = attribution.campaign; adjust_costType = attribution.costType; - adjust_costAmount = (float)attribution.costAmount; + if (attribution.costAmount != null) + { + adjust_costAmount = (float)attribution.costAmount; + } adjust_costCurrency = attribution.costCurrency; + version = Application.version; } }