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); }