Stripe 回调判空
This commit is contained in:
@@ -392,7 +392,7 @@ public class StripeServiceImpl implements StripeService {
|
|||||||
Charge charge = (Charge) stripeObject;
|
Charge charge = (Charge) stripeObject;
|
||||||
String orderNo = charge.getDescription().replace("AiDA - ", "");
|
String orderNo = charge.getDescription().replace("AiDA - ", "");
|
||||||
OrderInfo orderInfo = orderInfoService.getOrderByOrderNo(orderNo);
|
OrderInfo orderInfo = orderInfoService.getOrderByOrderNo(orderNo);
|
||||||
if (Objects.isNull(orderInfo)){
|
if (Objects.isNull(orderInfo.getId())){
|
||||||
// 说明该回调不是从AiDA订阅获得
|
// 说明该回调不是从AiDA订阅获得
|
||||||
response = Boolean.TRUE;
|
response = Boolean.TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user