fix adjust finder bug

This commit is contained in:
闫婷婷 2022-06-27 15:43:57 +08:00
parent c168fddfa1
commit 83feeb7a1d
1 changed files with 9 additions and 2 deletions

View File

@ -451,6 +451,7 @@ public class JoypacAnalyticsManager : MonoBehaviour
AdjustConfig config = new AdjustConfig(DynamicStringsKey.Instance.ADJUST_APP_TOKEN, AdjustEnvironment.Production, true); AdjustConfig config = new AdjustConfig(DynamicStringsKey.Instance.ADJUST_APP_TOKEN, AdjustEnvironment.Production, true);
config.setLogLevel(AdjustLogLevel.Suppress); config.setLogLevel(AdjustLogLevel.Suppress);
config.setLogDelegate(msg => LogTool.DebugLog(msg)); 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) 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("必填项没有手动修改!!【测试期间可忽略】"); Debug.LogError("必填项没有手动修改!!【测试期间可忽略】");
@ -948,9 +949,11 @@ public class JoypacAdjustFinder
public string adjust_costType = ""; public string adjust_costType = "";
//finder不支持double //finder不支持double
[SerializeField] [SerializeField]
public float? adjust_costAmount = null; public float adjust_costAmount = 0.0f;
[SerializeField] [SerializeField]
public string adjust_costCurrency = ""; public string adjust_costCurrency = "";
[SerializeField]
public string version = "";
public JoypacAdjustFinder(AdjustAttribution attribution) public JoypacAdjustFinder(AdjustAttribution attribution)
{ {
@ -964,8 +967,12 @@ public class JoypacAdjustFinder
adjust_trackerName = attribution.trackerName; adjust_trackerName = attribution.trackerName;
adjust_campaign = attribution.campaign; adjust_campaign = attribution.campaign;
adjust_costType = attribution.costType; adjust_costType = attribution.costType;
if (attribution.costAmount != null)
{
adjust_costAmount = (float)attribution.costAmount; adjust_costAmount = (float)attribution.costAmount;
}
adjust_costCurrency = attribution.costCurrency; adjust_costCurrency = attribution.costCurrency;
version = Application.version;
} }
} }