Showing
1 changed file
with
6 additions
and
3 deletions
@@ -209,7 +209,7 @@ class AutoTrackQueue { | @@ -209,7 +209,7 @@ class AutoTrackQueue { | ||
209 | } | 209 | } |
210 | }); | 210 | }); |
211 | 211 | ||
212 | - datas.add({ | 212 | + var data = { |
213 | '_track_id': id, | 213 | '_track_id': id, |
214 | 'time': event.time, | 214 | 'time': event.time, |
215 | 'type': 'track', | 215 | 'type': 'track', |
@@ -218,11 +218,14 @@ class AutoTrackQueue { | @@ -218,11 +218,14 @@ class AutoTrackQueue { | ||
218 | 'anonymous_id': AutoTrackConfigManager.instance.deviceId, | 218 | 'anonymous_id': AutoTrackConfigManager.instance.deviceId, |
219 | 'event': event.type, | 219 | 'event': event.type, |
220 | 'properties': properties | 220 | 'properties': properties |
221 | - }); | 221 | + }; |
222 | 222 | ||
223 | - AutoTrackLogger.getInstance().debug('upload => data => $datas'); | 223 | + datas.add(data); |
224 | + AutoTrackLogger.getInstance().debug('upload => SingleData => $data'); | ||
224 | } | 225 | } |
225 | 226 | ||
227 | + | ||
228 | + | ||
226 | try { | 229 | try { |
227 | final httpClient = HttpClient(); | 230 | final httpClient = HttpClient(); |
228 | final request = await httpClient.postUrl(Uri.parse(host + UPLOAD)); | 231 | final request = await httpClient.postUrl(Uri.parse(host + UPLOAD)); |
-
Please register or login to post a comment