fix adjust finder bug
This commit is contained in:
parent
c168fddfa1
commit
83feeb7a1d
|
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue