diff --git a/resources/views/admin/platform_orders/show.blade.php b/resources/views/admin/platform_orders/show.blade.php index 09cc667..efd3a29 100644 --- a/resources/views/admin/platform_orders/show.blade.php +++ b/resources/views/admin/platform_orders/show.blade.php @@ -275,7 +275,7 @@
原因:当前订单已存在退款记录/退款汇总。 - 去核对退款 + 去核对退款
@endif @if($markPaidBlockedByMissingSubscriptionOnRenewal) @@ -360,7 +360,7 @@ @endif @if($order->isRefundInconsistent()) @php - $fixRefundUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $orderShowSelf, 'refund-receipts'); + $fixRefundUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $orderShowSelf, 'add-refund-receipt'); @endphp 去核对退款 @endif diff --git a/tests/Feature/AdminPlatformOrderShowActivateSubscriptionButtonDisabledWhenGovernanceMismatchTest.php b/tests/Feature/AdminPlatformOrderShowActivateSubscriptionButtonDisabledWhenGovernanceMismatchTest.php index e26e94f..8a3e5f6 100644 --- a/tests/Feature/AdminPlatformOrderShowActivateSubscriptionButtonDisabledWhenGovernanceMismatchTest.php +++ b/tests/Feature/AdminPlatformOrderShowActivateSubscriptionButtonDisabledWhenGovernanceMismatchTest.php @@ -154,11 +154,11 @@ class AdminPlatformOrderShowActivateSubscriptionButtonDisabledWhenGovernanceMism preg_match_all('/href="([^"]+)"/', $html, $m); $hrefs = $m[1] ?? []; - $links = array_values(array_filter($hrefs, fn ($u) => str_starts_with($u, '/admin/platform-orders/' . $order->id) && str_contains($u, '#refund-receipts'))); - $this->assertGreaterThanOrEqual(1, count($links), '未找到指向 #refund-receipts 的治理链接'); + $links = array_values(array_filter($hrefs, fn ($u) => str_starts_with($u, '/admin/platform-orders/' . $order->id) && str_contains($u, '#add-refund-receipt'))); + $this->assertGreaterThanOrEqual(1, count($links), '未找到指向 #add-refund-receipt 的治理链接'); $parts = parse_url($links[0]); $this->assertSame('/admin/platform-orders/' . $order->id, $parts['path'] ?? ''); - $this->assertSame('refund-receipts', $parts['fragment'] ?? ''); + $this->assertSame('add-refund-receipt', $parts['fragment'] ?? ''); } } diff --git a/tests/Feature/AdminPlatformOrderShowActivateSubscriptionGovernanceHintTest.php b/tests/Feature/AdminPlatformOrderShowActivateSubscriptionGovernanceHintTest.php index ad9497d..d0243f2 100644 --- a/tests/Feature/AdminPlatformOrderShowActivateSubscriptionGovernanceHintTest.php +++ b/tests/Feature/AdminPlatformOrderShowActivateSubscriptionGovernanceHintTest.php @@ -112,6 +112,6 @@ class AdminPlatformOrderShowActivateSubscriptionGovernanceHintTest extends TestC $this->get('/admin/platform-orders/' . $order->id) ->assertOk() ->assertSee('当前订单命中「对账不一致/退款不一致」', false) - ->assertSee('#refund-receipts', false); + ->assertSee('#add-refund-receipt', false); } } diff --git a/tests/Feature/AdminPlatformOrderShowFixReceiptRefundLinksContainBackTest.php b/tests/Feature/AdminPlatformOrderShowFixReceiptRefundLinksContainBackTest.php index 97f04ed..80bce74 100644 --- a/tests/Feature/AdminPlatformOrderShowFixReceiptRefundLinksContainBackTest.php +++ b/tests/Feature/AdminPlatformOrderShowFixReceiptRefundLinksContainBackTest.php @@ -80,7 +80,7 @@ class AdminPlatformOrderShowFixReceiptRefundLinksContainBackTest extends TestCas $fixRefundUrl = '/admin/platform-orders/' . $order->id . '?' . Arr::query([ 'back' => $orderShowSelf, - ]) . '#refund-receipts'; + ]) . '#add-refund-receipt'; $res->assertSee($fixReceiptUrl, false); $res->assertSee($fixRefundUrl, false); diff --git a/tests/Feature/AdminPlatformOrderShowMarkPaidAndActivateGovernanceBlockTest.php b/tests/Feature/AdminPlatformOrderShowMarkPaidAndActivateGovernanceBlockTest.php index 8f258dd..31a5445 100644 --- a/tests/Feature/AdminPlatformOrderShowMarkPaidAndActivateGovernanceBlockTest.php +++ b/tests/Feature/AdminPlatformOrderShowMarkPaidAndActivateGovernanceBlockTest.php @@ -72,6 +72,6 @@ class AdminPlatformOrderShowMarkPaidAndActivateGovernanceBlockTest extends TestC $res->assertSee('BMPA 治理提示', false); $res->assertSee('去核对退款', false); - $res->assertSee('href="#refund-receipts"', false); + $res->assertSee('href="#add-refund-receipt"', false); } } diff --git a/tests/Feature/AdminPlatformOrderShowMarkPaidAndActivateGuidanceLinksTest.php b/tests/Feature/AdminPlatformOrderShowMarkPaidAndActivateGuidanceLinksTest.php index a24f61e..7f40aa7 100644 --- a/tests/Feature/AdminPlatformOrderShowMarkPaidAndActivateGuidanceLinksTest.php +++ b/tests/Feature/AdminPlatformOrderShowMarkPaidAndActivateGuidanceLinksTest.php @@ -71,7 +71,7 @@ class AdminPlatformOrderShowMarkPaidAndActivateGuidanceLinksTest extends TestCas $res->assertOk(); $res->assertSee('去核对退款', false); - $res->assertSee('href="#refund-receipts"', false); + $res->assertSee('href="#add-refund-receipt"', false); } public function test_when_bmpa_blocked_by_receipt_mismatch_should_show_receipt_guidance_link(): void