|
@@ -118,7 +118,7 @@ public class AppStoreServiceImpl implements AppStoreService {
|
|
createSubscription.setEmail(userVO.getEmail());
|
|
createSubscription.setEmail(userVO.getEmail());
|
|
createSubscription.setBuyerType(4);//2官网购买 3后台赠送 4appstore
|
|
createSubscription.setBuyerType(4);//2官网购买 3后台赠送 4appstore
|
|
createSubscription.setSubscriptionType(SubscriptionTypeEnum.MEMBER.value());//如果是0则是试用
|
|
createSubscription.setSubscriptionType(SubscriptionTypeEnum.MEMBER.value());//如果是0则是试用
|
|
- createSubscription.setPaymentModel(2);
|
|
|
|
|
|
+ createSubscription.setPaymentModel(product.getPaymentModel());
|
|
createSubscription.setPrice(price);
|
|
createSubscription.setPrice(price);
|
|
createSubscription.setPayTime(0);
|
|
createSubscription.setPayTime(0);
|
|
subscriptionsService.createSubscription(createSubscription);
|
|
subscriptionsService.createSubscription(createSubscription);
|
|
@@ -136,7 +136,7 @@ public class AppStoreServiceImpl implements AppStoreService {
|
|
.paymentMethod(PaymentMethodEnum.APPLE_PAY)
|
|
.paymentMethod(PaymentMethodEnum.APPLE_PAY)
|
|
.appId(appId)
|
|
.appId(appId)
|
|
.productId(product.getId())
|
|
.productId(product.getId())
|
|
- .paymentModel(2)
|
|
|
|
|
|
+ .paymentModel(product.getPaymentModel())
|
|
.subscriptionType(1)
|
|
.subscriptionType(1)
|
|
.payNumber(1)
|
|
.payNumber(1)
|
|
.tradeNo(readeNo)
|
|
.tradeNo(readeNo)
|