BUGFIX:payment_info表中记录的type不够准确(避免出现manual类型的交易)
This commit is contained in:
@@ -275,6 +275,11 @@ public class PaymentInfoServiceImpl extends ServiceImpl<PaymentInfoMapper, Payme
|
||||
Map<String, String> paymentMethod = stripeService.getPaymentMethodByInvoiceId(invoiceId);
|
||||
// 获取订单信息
|
||||
OrderInfo orderByOrderNo = orderInfoService.getOrderByOrderNo(orderNo);
|
||||
if (type.equals("manual") && orderByOrderNo.getTitle().startsWith("积分购买")) {
|
||||
type = "credits";
|
||||
} else if (type.equals("manual") && orderByOrderNo.getTitle().endsWith("Subscription")) {
|
||||
type = "new";
|
||||
}
|
||||
|
||||
paymentInfo = new PaymentInfo();
|
||||
paymentInfo.setOrderNo(orderNo);
|
||||
|
||||
Reference in New Issue
Block a user