Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
auto_track_plugin
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
顾海波
2025-02-24 17:07:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8c81def147bc035e0d817a2c9241e5a94d7f8b40
8c81def1
1 parent
3410a0dd
【修复】埋点时间
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
lib/auto_track/config/queue.dart
lib/auto_track/config/queue.dart
View file @
8c81def
...
...
@@ -135,10 +135,9 @@ class AutoTrackQueue {
if
(
host
!=
null
)
{
List
<
Map
>
datas
=
[];
uploadList
.
forEach
((
even
t
)
{
for
(
var
event
in
uploadLis
t
)
{
Random
random
=
Random
.
secure
();
int
id
=
random
.
nextInt
(
1
<<
32
);
// 模拟 Java 的 nextInt()
final
t
=
DateTime
.
now
().
millisecondsSinceEpoch
;
String
os
=
""
;
String
os_version
=
""
;
...
...
@@ -212,7 +211,7 @@ class AutoTrackQueue {
datas
.
add
({
'_track_id'
:
id
,
'time'
:
t
,
'time'
:
event
.
time
,
'type'
:
'track'
,
'distinct_id'
:
config
.
userId
??
AutoTrackConfigManager
.
instance
.
deviceId
,
...
...
@@ -222,7 +221,7 @@ class AutoTrackQueue {
});
AutoTrackLogger
.
getInstance
().
debug
(
'upload => data =>
$datas
'
);
}
);
}
try
{
final
httpClient
=
HttpClient
();
...
...
Please
register
or
login
to post a comment