diff --git a/Runtime/GuruAdjust/AdjustService.cs b/Runtime/GuruAdjust/AdjustService.cs
index 32b244c..8cd4012 100644
--- a/Runtime/GuruAdjust/AdjustService.cs
+++ b/Runtime/GuruAdjust/AdjustService.cs
@@ -50,8 +50,9 @@ namespace Guru
///
///
/// MIR 追踪 AppID
+ ///
///
- public static void StartService(string appToken, string fbAppId = "", Action onDeeplinkCallback = null)
+ public static void StartService(string appToken, string fbAppId = "", Action onSessionSuccess = null, Action onDeeplinkCallback = null)
{
if (string.IsNullOrEmpty(appToken))
{
diff --git a/Runtime/GuruCore/Runtime/Firebase/FirebaseUtil.cs b/Runtime/GuruCore/Runtime/Firebase/FirebaseUtil.cs
index 11ab9a2..636d716 100644
--- a/Runtime/GuruCore/Runtime/Firebase/FirebaseUtil.cs
+++ b/Runtime/GuruCore/Runtime/Firebase/FirebaseUtil.cs
@@ -121,24 +121,26 @@ namespace Guru
{
ReportAdjustId(IPMConfig.ADJUST_ID); // 二次启动后,若有值则立即上报属性
}
-
- AdjustService.StartService(appToken, fbAppId, adjustId =>
- {
- // 获取 ADID
- if (string.IsNullOrEmpty(adjustId))
- {
- adjustId = "not_set";
- }
- else
- {
- IPMConfig.ADJUST_ID = adjustId;
- }
- ReportAdjustId(adjustId);
- });
+ AdjustService.StartService(appToken, fbAppId, OnGetAdjustId, OnAdjustDeeplinkCallback);
+
});
}
+ private static void OnGetAdjustId(string adjustId)
+ {
+ // 获取 ADID
+ if (string.IsNullOrEmpty(adjustId))
+ {
+ adjustId = "not_set";
+ }
+ else
+ {
+ IPMConfig.ADJUST_ID = adjustId;
+ }
+ ReportAdjustId(adjustId);
+ }
+
private static void ReportAdjustId(string adjustId)
{