|
...
|
...
|
@@ -7,6 +7,7 @@ import 'package:doublefeel_flutter/app/modules/home/controllers/trend/trend_cont |
|
|
|
import 'package:doublefeel_flutter/app/modules/home/widgets/today/friend_select_bottom_sheet.dart';
|
|
|
|
import 'package:doublefeel_flutter/app/modules/home/widgets/today/no_health_data_page.dart';
|
|
|
|
import 'package:doublefeel_flutter/app/routes/app_pages.dart';
|
|
|
|
import 'package:doublefeel_flutter/core/constants/membership.dart';
|
|
|
|
import 'package:doublefeel_flutter/core/logging/app_logger.dart';
|
|
|
|
import 'package:doublefeel_flutter/core/network/api/friend_api.dart';
|
|
|
|
import 'package:doublefeel_flutter/core/network/api/health_api.dart';
|
|
...
|
...
|
@@ -263,8 +264,7 @@ class TodayController extends GetMaterialController { |
|
|
|
/// 上传 Apple Health 新数据。
|
|
|
|
Future<void> _performDataUpload() async {
|
|
|
|
try {
|
|
|
|
final result =
|
|
|
|
await _hostApi.performHealthUpload();
|
|
|
|
final result = await _hostApi.performHealthUpload();
|
|
|
|
// AppLogger.i(
|
|
|
|
// 'Apple Health upload finished: '
|
|
|
|
// 'common=${result.commonUploadSuccess}(${result.commonCount}), '
|
|
...
|
...
|
@@ -543,8 +543,7 @@ class TodayController extends GetMaterialController { |
|
|
|
.where((product) => _nonEmpty(product.appleId) != null)
|
|
|
|
.toList();
|
|
|
|
yearlyProduct.value = products
|
|
|
|
// .firstWhereOrNull((p) => p.appleId == 'com.doublefeel.yearly_v1');
|
|
|
|
.firstWhereOrNull((p) => p.appleId == 'com.doublefeel.yearly');
|
|
|
|
.firstWhereOrNull((p) => p.appleId == Membership.yearlyProductId);
|
|
|
|
AppLogger.e(yearlyProduct);
|
|
|
|
if (yearlyProduct.value != null) {
|
|
|
|
final appleProductId = _nonEmpty(yearlyProduct.value!.appleId);
|
...
|
...
|
|