From b220368544ce91a3d91e206eaa82ed563340a66a Mon Sep 17 00:00:00 2001 From: milky0217 Date: Mon, 15 Jun 2026 13:24:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=80=E6=AC=BE=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=BD=BF=E7=94=A8=E6=89=8B=E5=8A=A8=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E8=A7=A3=E6=9E=90=E9=81=BF=E5=85=8DGBK=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/handlers/payment.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers/payment.rs b/src/handlers/payment.rs index de30fa3..101db78 100644 --- a/src/handlers/payment.rs +++ b/src/handlers/payment.rs @@ -1057,9 +1057,9 @@ pub async fn payment_success( #[post("/payment/refund-notify")] pub async fn alipay_refund_notify( pool: web::Data, - body: web::Form>, + body_bytes: web::Bytes, ) -> HttpResponse { - let body = body.into_inner(); + let body = parse_alipay_form(&body_bytes); let out_trade_no = body.get("out_trade_no").cloned().unwrap_or_default(); let refund_status = body.get("refund_status").cloned().unwrap_or_default();