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:10:12 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
90bcd5b5a4bcfc513f13da9f5ca270f3b7434533
90bcd5b5
1 parent
8c81def1
【需求】输出日志
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
lib/auto_track/config/queue.dart
lib/auto_track/config/queue.dart
View file @
90bcd5b
...
...
@@ -209,20 +209,23 @@ class AutoTrackQueue {
}
});
datas
.
add
(
{
var
data
=
{
'_track_id'
:
id
,
'time'
:
event
.
time
,
'type'
:
'track'
,
'distinct_id'
:
config
.
userId
??
AutoTrackConfigManager
.
instance
.
deviceId
,
config
.
userId
??
AutoTrackConfigManager
.
instance
.
deviceId
,
'anonymous_id'
:
AutoTrackConfigManager
.
instance
.
deviceId
,
'event'
:
event
.
type
,
'properties'
:
properties
}
)
;
};
AutoTrackLogger
.
getInstance
().
debug
(
'upload => data =>
$datas
'
);
datas
.
add
(
data
);
AutoTrackLogger
.
getInstance
().
debug
(
'upload => SingleData =>
$data
'
);
}
try
{
final
httpClient
=
HttpClient
();
final
request
=
await
httpClient
.
postUrl
(
Uri
.
parse
(
host
+
UPLOAD
));
...
...
Please
register
or
login
to post a comment