|
...
|
...
|
@@ -31,6 +31,7 @@ class PurchasePlan { |
|
|
|
this.product,
|
|
|
|
this.appleProductId,
|
|
|
|
this.actualPrice,
|
|
|
|
this.appleProductInfo,
|
|
|
|
});
|
|
|
|
|
|
|
|
final String title;
|
|
...
|
...
|
@@ -42,6 +43,8 @@ class PurchasePlan { |
|
|
|
|
|
|
|
/// Real product price in cents, based on the Chinese price baseline.
|
|
|
|
final int? actualPrice;
|
|
|
|
|
|
|
|
final AppleProductInfo? appleProductInfo;
|
|
|
|
}
|
|
|
|
|
|
|
|
class PurchaseController extends GetxController {
|
|
...
|
...
|
@@ -349,6 +352,7 @@ class PurchaseController extends GetxController { |
|
|
|
product: product,
|
|
|
|
appleProductId: product.appleId,
|
|
|
|
actualPrice: appleInfo == null ? null : _actualPrice(appleInfo),
|
|
|
|
appleProductInfo: appleInfo,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -441,12 +445,18 @@ class PurchaseController extends GetxController { |
|
|
|
|
|
|
|
void _trackSuccessPayOrder() {
|
|
|
|
final plan = _selectedPlan;
|
|
|
|
final appleInfo = plan?.appleProductInfo;
|
|
|
|
final actualPrice = appleInfo?.price ?? 0;
|
|
|
|
ta.track(
|
|
|
|
'success_doublefeel_pay_order',
|
|
|
|
properties: {
|
|
|
|
..._baseAnalyticsProperties,
|
|
|
|
'product_type': plan?.product?.appleId,
|
|
|
|
'price': plan?.product?.price,
|
|
|
|
'currency_code': appleInfo?.currencyCode ?? '',
|
|
|
|
'actual_price': actualPrice > 0
|
|
|
|
? actualPrice
|
|
|
|
: (appleInfo?.originPrice ?? 0),
|
|
|
|
},
|
|
|
|
);
|
|
|
|
}
|
...
|
...
|
|