fix: 更新 Consent 的回调兼容性

deeplink
胡宇飞 2024-03-18 16:18:34 +08:00
parent 282aaeadf4
commit aef99259b5
1 changed files with 6 additions and 1 deletions

View File

@ -104,7 +104,12 @@ namespace Guru
message = jMsg.ToString();
}
Debug.Log($"{Tag} --- status: {status} msg: {message}");
onCompleteHandler?.Invoke(status);
GuruSDKCallback.RemoveCallback(OnSDKCallback);
if (onCompleteHandler != null)
{
onCompleteHandler.Invoke(status);
onCompleteHandler = null;
}
return;
}
}