diff --git a/app/Http/Controllers/Admin/PlatformOrderController.php b/app/Http/Controllers/Admin/PlatformOrderController.php index 643823a..169fccb 100644 --- a/app/Http/Controllers/Admin/PlatformOrderController.php +++ b/app/Http/Controllers/Admin/PlatformOrderController.php @@ -1096,7 +1096,7 @@ class PlatformOrderController extends Controller $redirectUrl .= '?' . \Illuminate\Support\Arr::query(['back' => $safeBack]); } - return redirect($redirectUrl . '#refund-receipts') + return redirect($redirectUrl . '#add-refund-receipt') ->with('success', '已追加退款记录(用于退款轨迹留痕)。'); } diff --git a/tests/Feature/AdminPlatformOrderAddRefundReceiptShouldRedirectBackToShowWithAnchorAndBackTest.php b/tests/Feature/AdminPlatformOrderAddRefundReceiptShouldRedirectBackToShowWithAnchorAndBackTest.php index 7a3ac82..9bd7160 100644 --- a/tests/Feature/AdminPlatformOrderAddRefundReceiptShouldRedirectBackToShowWithAnchorAndBackTest.php +++ b/tests/Feature/AdminPlatformOrderAddRefundReceiptShouldRedirectBackToShowWithAnchorAndBackTest.php @@ -70,7 +70,7 @@ class AdminPlatformOrderAddRefundReceiptShouldRedirectBackToShowWithAnchorAndBac $expected = '/admin/platform-orders/' . $order->id . '?' . Arr::query([ 'back' => $back, - ]) . '#refund-receipts'; + ]) . '#add-refund-receipt'; $res->assertRedirect($expected); }