fix: 对app进行瘦身
This commit is contained in:
+4
-6
@@ -17,7 +17,7 @@ import '../../../services/api_service/kr_api.user.dart';
|
||||
import '../../../utils/kr_event_bus.dart';
|
||||
import '../../../network/http_util.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter_stripe/flutter_stripe.dart';
|
||||
// import 'package:flutter_stripe/flutter_stripe.dart';
|
||||
import 'package:in_app_purchase/in_app_purchase.dart';
|
||||
import 'dart:async';
|
||||
import 'package:flutter/services.dart';
|
||||
@@ -512,9 +512,6 @@ class KRPurchaseMembershipController extends GetxController {
|
||||
/// 处理购买和结账流程
|
||||
Future<void> kr_processPurchaseAndCheckout() async {
|
||||
final selectedPlan = kr_plans[kr_selectedPlanIndex.value];
|
||||
// =========================================================================
|
||||
// 🔽 支付方式选择优化:iOS 优先使用 Stripe 🔽
|
||||
// =========================================================================
|
||||
final isIOS = Platform.isIOS;
|
||||
|
||||
// 1. 初始化为默认回退值
|
||||
@@ -923,7 +920,8 @@ class KRPurchaseMembershipController extends GetxController {
|
||||
},
|
||||
);
|
||||
} else if (checkoutResponse.type == 'stripe') {
|
||||
// Stripe 类型:显示 Stripe 支付表单
|
||||
KRCommonUtil.kr_showToast('不支持 stripe方式');
|
||||
/* // Stripe 类型:显示 Stripe 支付表单
|
||||
print(' Stripe Method: ${checkoutResponse.stripe?.method}');
|
||||
print(
|
||||
' Stripe Client Secret: ${checkoutResponse.stripe?.clientSecret}');
|
||||
@@ -983,7 +981,7 @@ class KRPurchaseMembershipController extends GetxController {
|
||||
'checkout_type': 'stripe',
|
||||
'stripe': checkoutResponse.stripe,
|
||||
},
|
||||
);
|
||||
);*/
|
||||
} else if (checkoutResponse.type == 'balance') {
|
||||
// Stripe 类型:显示 Stripe 支付表单
|
||||
print(' Stripe Method: ${checkoutResponse.stripe?.method}');
|
||||
|
||||
Reference in New Issue
Block a user