tangxiangan hai 2 días
pai
achega
4c1201ccba

+ 2 - 2
pdf-office-payment/src/main/java/cn/kdan/cloud/pdf/office/payment/service/impl/AppStoreServiceImpl.java

@@ -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)

+ 2 - 2
pdf-office-payment/src/main/java/cn/kdan/cloud/pdf/office/payment/service/impl/GooglePayServiceImpl.java

@@ -131,7 +131,7 @@ public class GooglePayServiceImpl implements GooglePayService {
         createSubscription.setEmail(userVO.getEmail());
         createSubscription.setBuyerType(5);//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);
@@ -149,7 +149,7 @@ public class GooglePayServiceImpl implements GooglePayService {
                 .appId(appId)
                 .productId(productId)
                 //安卓全是自动续费
-                .paymentModel(2)
+                .paymentModel(product.getPaymentModel())
                 .subscriptionType(1)
                 .payNumber(1)
                 .tradeNo(readeNo)