BUGFIX:payment_info表中记录的type不够准确(避免出现manual类型的交易)

This commit is contained in:
2026-06-11 17:11:37 +08:00
parent 4206bd5356
commit b03f794391

View File

@@ -275,6 +275,11 @@ public class PaymentInfoServiceImpl extends ServiceImpl<PaymentInfoMapper, Payme
Map<String, String> paymentMethod = stripeService.getPaymentMethodByInvoiceId(invoiceId); Map<String, String> paymentMethod = stripeService.getPaymentMethodByInvoiceId(invoiceId);
// 获取订单信息 // 获取订单信息
OrderInfo orderByOrderNo = orderInfoService.getOrderByOrderNo(orderNo); 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 = new PaymentInfo();
paymentInfo.setOrderNo(orderNo); paymentInfo.setOrderNo(orderNo);