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