fix: stabilize production payment flow
This commit is contained in:
@@ -222,6 +222,13 @@ class RechargeStatusView(PortalSessionApiView):
|
||||
api_error(exc.code, "支付查单结果与本地订单不一致"),
|
||||
status=status.HTTP_400_BAD_REQUEST,
|
||||
)
|
||||
except Exception as exc: # pragma: no cover - external gateway/runtime.
|
||||
logger.warning(
|
||||
"Active recharge query failed for %s: %s",
|
||||
order.order_no,
|
||||
exc.__class__.__name__,
|
||||
)
|
||||
order.refresh_from_db()
|
||||
|
||||
return Response(_recharge_order_response(order), status=status.HTTP_200_OK)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user