|
@@ -33,9 +33,9 @@ public class StripePriceServiceImpl extends ServiceImpl<IStripePriceMapper, Stri
|
|
|
wrapper.eq(StripePrice::getUnitAmount,orderMoney);
|
|
|
wrapper.eq(StripePrice::getCurrency,currency);
|
|
|
wrapper.eq(StripePrice::getProductId,productId);
|
|
|
- wrapper.eq(StripePrice::getRecurring,autoPay);
|
|
|
+ wrapper.eq(StripePrice::getAutoPay,autoPay);
|
|
|
if(autoPay == 1){
|
|
|
- wrapper.eq(StripePrice::getInterval,interval);
|
|
|
+ wrapper.eq(StripePrice::getRecurringParam,interval);
|
|
|
}
|
|
|
StripePrice one = this.getOne(wrapper);
|
|
|
if(one == null){
|
|
@@ -67,8 +67,8 @@ public class StripePriceServiceImpl extends ServiceImpl<IStripePriceMapper, Stri
|
|
|
stripePrice.setUnitAmount(orderMoney);
|
|
|
stripePrice.setCurrency(currency);
|
|
|
stripePrice.setProductId(productId);
|
|
|
- stripePrice.setRecurring(autoPay);
|
|
|
- stripePrice.setInterval(interval);
|
|
|
+ stripePrice.setAutoPay(autoPay);
|
|
|
+ stripePrice.setRecurringParam(interval);
|
|
|
this.save(stripePrice);
|
|
|
|
|
|
}
|