Showing
1 changed file
with
3 additions
and
1 deletions
@@ -62,7 +62,6 @@ class AutoTrackConfigManager { | @@ -62,7 +62,6 @@ class AutoTrackConfigManager { | ||
62 | updateConfig((old) { | 62 | updateConfig((old) { |
63 | return config; | 63 | return config; |
64 | }); | 64 | }); |
65 | - _updateDeviceId(); | ||
66 | } | 65 | } |
67 | 66 | ||
68 | void updateConfig(UpdateConfigFunc func) { | 67 | void updateConfig(UpdateConfigFunc func) { |
@@ -96,6 +95,9 @@ class AutoTrackConfigManager { | @@ -96,6 +95,9 @@ class AutoTrackConfigManager { | ||
96 | 95 | ||
97 | void enableAutoTrack(bool enable) { | 96 | void enableAutoTrack(bool enable) { |
98 | _autoTrackEnable = enable; | 97 | _autoTrackEnable = enable; |
98 | + if(enable){ | ||
99 | + _updateDeviceId(); | ||
100 | + } | ||
99 | //获取token | 101 | //获取token |
100 | getToken(false); | 102 | getToken(false); |
101 | } | 103 | } |
-
Please register or login to post a comment