Showing
1 changed file
with
5 additions
and
6 deletions
@@ -26,11 +26,6 @@ class AutoTrackConfigManager { | @@ -26,11 +26,6 @@ class AutoTrackConfigManager { | ||
26 | _appName = value.appName; | 26 | _appName = value.appName; |
27 | _pkgName = value.packageName; | 27 | _pkgName = value.packageName; |
28 | }); | 28 | }); |
29 | - DeviceInfoPlugin().deviceInfo.then((value) { | ||
30 | - _deviceInfo = value.data; | ||
31 | - _baseDeviceInfo = value; | ||
32 | - // _updateDeviceId(); | ||
33 | - }); | ||
34 | } | 29 | } |
35 | 30 | ||
36 | String _appVersion = ''; | 31 | String _appVersion = ''; |
@@ -96,7 +91,11 @@ class AutoTrackConfigManager { | @@ -96,7 +91,11 @@ class AutoTrackConfigManager { | ||
96 | void enableAutoTrack(bool enable) { | 91 | void enableAutoTrack(bool enable) { |
97 | _autoTrackEnable = enable; | 92 | _autoTrackEnable = enable; |
98 | if(enable){ | 93 | if(enable){ |
99 | - _updateDeviceId(); | 94 | + DeviceInfoPlugin().deviceInfo.then((value) { |
95 | + _deviceInfo = value.data; | ||
96 | + _baseDeviceInfo = value; | ||
97 | + _updateDeviceId(); | ||
98 | + }); | ||
100 | } | 99 | } |
101 | //获取token | 100 | //获取token |
102 | getToken(false); | 101 | getToken(false); |
-
Please register or login to post a comment