Commit 116979b3de6ec559fbf28ba11ea4a7ffe1158f08

Authored by 权海
1 parent 166511ee

feat(ui):移除调试代码

@@ -35,8 +35,6 @@ class CustomWatchThemePreviewController extends GetxController { @@ -35,8 +35,6 @@ class CustomWatchThemePreviewController extends GetxController {
35 final friendThemeItem = Rx<WatchThemeItem?>(null); 35 final friendThemeItem = Rx<WatchThemeItem?>(null);
36 final selectedThemeItem = Rx<WatchThemeItem?>(null); 36 final selectedThemeItem = Rx<WatchThemeItem?>(null);
37 37
38 - final watchConnectErrorDesc = Rx<String?>(null);  
39 -  
40 bool get hasFriend { 38 bool get hasFriend {
41 return (friendThemeItem.value?.userId ?? 0) > 0; 39 return (friendThemeItem.value?.userId ?? 0) > 0;
42 } 40 }
@@ -149,10 +147,8 @@ class CustomWatchThemePreviewController extends GetxController { @@ -149,10 +147,8 @@ class CustomWatchThemePreviewController extends GetxController {
149 WearDeviceInfo? device; 147 WearDeviceInfo? device;
150 try { 148 try {
151 device = await WearEngineHostApi().checkConnectedDevice(); 149 device = await WearEngineHostApi().checkConnectedDevice();
152 - watchConnectErrorDesc.value = device?.connectedDeviceDesc;  
153 } catch (e) { 150 } catch (e) {
154 device = null; 151 device = null;
155 - watchConnectErrorDesc.value = e.toString();  
156 } 152 }
157 if (device?.isPaired != true) { 153 if (device?.isPaired != true) {
158 await Get.dialog<void>( 154 await Get.dialog<void>(
@@ -173,10 +169,8 @@ class CustomWatchThemePreviewController extends GetxController { @@ -173,10 +169,8 @@ class CustomWatchThemePreviewController extends GetxController {
173 WearDeviceInfo? device; 169 WearDeviceInfo? device;
174 try { 170 try {
175 device = await WearEngineHostApi().checkConnectedDevice(); 171 device = await WearEngineHostApi().checkConnectedDevice();
176 - watchConnectErrorDesc.value = device?.connectedDeviceDesc;  
177 } catch (e) { 172 } catch (e) {
178 device = null; 173 device = null;
179 - watchConnectErrorDesc.value = e.toString();  
180 } 174 }
181 if (device?.isPaired != true) { 175 if (device?.isPaired != true) {
182 await Get.dialog<void>( 176 await Get.dialog<void>(
@@ -33,8 +33,6 @@ class WatchThemePreviewController extends GetxController { @@ -33,8 +33,6 @@ class WatchThemePreviewController extends GetxController {
33 final friendThemeItem = Rx<WatchThemeItem?>(null); 33 final friendThemeItem = Rx<WatchThemeItem?>(null);
34 final selectedThemeItem = Rx<WatchThemeItem?>(null); 34 final selectedThemeItem = Rx<WatchThemeItem?>(null);
35 35
36 - final watchConnectErrorDesc = Rx<String?>(null);  
37 -  
38 bool get hasFriend { 36 bool get hasFriend {
39 return (friendThemeItem.value?.userId ?? 0) > 0; 37 return (friendThemeItem.value?.userId ?? 0) > 0;
40 } 38 }
@@ -119,10 +117,8 @@ class WatchThemePreviewController extends GetxController { @@ -119,10 +117,8 @@ class WatchThemePreviewController extends GetxController {
119 WearDeviceInfo? device; 117 WearDeviceInfo? device;
120 try { 118 try {
121 device = await WearEngineHostApi().checkConnectedDevice(); 119 device = await WearEngineHostApi().checkConnectedDevice();
122 - watchConnectErrorDesc.value = device?.connectedDeviceDesc;  
123 } catch (e) { 120 } catch (e) {
124 device = null; 121 device = null;
125 - watchConnectErrorDesc.value = e.toString();  
126 } 122 }
127 if (device?.isPaired != true) { 123 if (device?.isPaired != true) {
128 await Get.dialog<void>( 124 await Get.dialog<void>(
@@ -144,10 +140,8 @@ class WatchThemePreviewController extends GetxController { @@ -144,10 +140,8 @@ class WatchThemePreviewController extends GetxController {
144 WearDeviceInfo? device; 140 WearDeviceInfo? device;
145 try { 141 try {
146 device = await WearEngineHostApi().checkConnectedDevice(); 142 device = await WearEngineHostApi().checkConnectedDevice();
147 - watchConnectErrorDesc.value = device?.connectedDeviceDesc;  
148 } catch (e) { 143 } catch (e) {
149 device = null; 144 device = null;
150 - watchConnectErrorDesc.value = e.toString();  
151 } 145 }
152 if (device?.isPaired != true) { 146 if (device?.isPaired != true) {
153 await Get.dialog<void>( 147 await Get.dialog<void>(
@@ -39,7 +39,7 @@ class CustomWatchThemePreviewView @@ -39,7 +39,7 @@ class CustomWatchThemePreviewView
39 return WatchThemeHeader( 39 return WatchThemeHeader(
40 title: controller.themeItem.title, 40 title: controller.themeItem.title,
41 themeImageUrl: controller.themeItem.energeticImage, 41 themeImageUrl: controller.themeItem.energeticImage,
42 - errorDesc: controller.watchConnectErrorDesc.value, 42 + errorDesc: null,
43 ); 43 );
44 }), 44 }),
45 const SizedBox(height: 26), 45 const SizedBox(height: 26),
@@ -26,7 +26,7 @@ class WatchThemePreviewView extends GetView<WatchThemePreviewController> { @@ -26,7 +26,7 @@ class WatchThemePreviewView extends GetView<WatchThemePreviewController> {
26 Obx(() { 26 Obx(() {
27 return WatchThemeHeader( 27 return WatchThemeHeader(
28 themeImageUrl: controller.themeItem.energeticImage, 28 themeImageUrl: controller.themeItem.energeticImage,
29 - errorDesc: controller.watchConnectErrorDesc.value, 29 + errorDesc: null,
30 ); 30 );
31 }), 31 }),
32 const SizedBox(height: 26), 32 const SizedBox(height: 26),
@@ -384,9 +384,6 @@ class HealthRawDataCoreService { @@ -384,9 +384,6 @@ class HealthRawDataCoreService {
384 result: storedResult, 384 result: storedResult,
385 previousHrvRawEndTime: latestHrvRawEndTime, 385 previousHrvRawEndTime: latestHrvRawEndTime,
386 ); 386 );
387 - if (isFirstCalculation && (_environmentConfig?.isDebug ?? false)) {  
388 - AppToast.show('首次计算完成');  
389 - }  
390 final calculateFinishedAt = DateTime.now(); 387 final calculateFinishedAt = DateTime.now();
391 _logInfo( 388 _logInfo(
392 'calculateEndAt=${_formatDateTimeMilliseconds(calculateFinishedAt)}', 389 'calculateEndAt=${_formatDateTimeMilliseconds(calculateFinishedAt)}',