From 489032f04f9eda73054de8bd5f4aa6eb6a7972f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Tue, 17 Mar 2026 21:52:52 +0800 Subject: [PATCH] =?UTF-8?q?admin:=20=E8=BF=BD=E5=8A=A0=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=9B=9E=E6=89=A7=E5=90=8E=E9=87=8D=E5=AE=9A=E5=90=91=E5=88=B0?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0=E5=9B=9E=E6=89=A7=E9=9D=A2=E6=9D=BF=E9=94=9A?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Admin/PlatformOrderController.php | 2 +- ...mentReceiptShouldRedirectBackToShowWithAnchorAndBackTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Admin/PlatformOrderController.php b/app/Http/Controllers/Admin/PlatformOrderController.php index 169fccb..b7a8b61 100644 --- a/app/Http/Controllers/Admin/PlatformOrderController.php +++ b/app/Http/Controllers/Admin/PlatformOrderController.php @@ -996,7 +996,7 @@ class PlatformOrderController extends Controller $redirectUrl .= '?' . \Illuminate\Support\Arr::query(['back' => $safeBack]); } - return redirect($redirectUrl . '#payment-receipts') + return redirect($redirectUrl . '#add-payment-receipt') ->with('success', '已追加支付回执记录(仅用于对账留痕,不自动改状态)。'); } diff --git a/tests/Feature/AdminPlatformOrderAddPaymentReceiptShouldRedirectBackToShowWithAnchorAndBackTest.php b/tests/Feature/AdminPlatformOrderAddPaymentReceiptShouldRedirectBackToShowWithAnchorAndBackTest.php index 781fb64..8873fcd 100644 --- a/tests/Feature/AdminPlatformOrderAddPaymentReceiptShouldRedirectBackToShowWithAnchorAndBackTest.php +++ b/tests/Feature/AdminPlatformOrderAddPaymentReceiptShouldRedirectBackToShowWithAnchorAndBackTest.php @@ -68,7 +68,7 @@ class AdminPlatformOrderAddPaymentReceiptShouldRedirectBackToShowWithAnchorAndBa $expected = '/admin/platform-orders/' . $order->id . '?' . Arr::query([ 'back' => $back, - ]) . '#payment-receipts'; + ]) . '#add-payment-receipt'; $res->assertRedirect($expected); }