2025-09-10 09:52:33 +00:00
|
|
|
using System;
|
2025-08-30 09:38:53 +00:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
2025-09-03 03:45:52 +00:00
|
|
|
using AdjustSdk;
|
2025-08-30 09:38:53 +00:00
|
|
|
using ThinkingData.Analytics;
|
|
|
|
using UnityEngine;
|
2025-09-01 10:32:50 +00:00
|
|
|
namespace WZ
|
2025-08-30 09:38:53 +00:00
|
|
|
{
|
2025-09-02 09:14:49 +00:00
|
|
|
public class ShuShuMangage : D_MonoSingleton<ShuShuMangage>
|
2025-08-30 09:38:53 +00:00
|
|
|
{
|
2025-09-01 10:32:50 +00:00
|
|
|
public void Init()
|
|
|
|
{
|
2025-09-03 03:45:52 +00:00
|
|
|
LoggerUtils.Debug("ShuShuMangage Init" + StaticValue.TDAppID + " serverURL" + StaticValue.TDServerURL);
|
2025-09-01 10:32:50 +00:00
|
|
|
// 初始化SDK
|
2025-09-02 09:50:19 +00:00
|
|
|
TDAnalytics.Init(StaticValue.TDAppID, StaticValue.TDServerURL);
|
2025-09-01 10:32:50 +00:00
|
|
|
//开启自动采集事件
|
|
|
|
TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.AppInstall | TDAutoTrackEventType.AppStart | TDAutoTrackEventType.AppEnd);
|
2025-09-18 03:25:52 +00:00
|
|
|
|
|
|
|
TDAnalytics.SetSuperProperties(new Dictionary<string, object>
|
|
|
|
{
|
|
|
|
["rush_version"] = RushSDKManager.GetSDKVersion()
|
|
|
|
});
|
2025-09-10 09:52:33 +00:00
|
|
|
ShuShuEvent.Instance.UserSet(new Dictionary<string, object>
|
|
|
|
{
|
2025-09-10 13:54:24 +00:00
|
|
|
{ "register_timestamp", DateTimeOffset.UtcNow.ToUnixTimeSeconds() + (8 * 3600)},
|
|
|
|
{ "register_timestamp_utc", DateTimeOffset.UtcNow.ToUnixTimeSeconds()},
|
2025-09-10 09:52:33 +00:00
|
|
|
},true);
|
2025-09-01 10:32:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|