From a3e151b0c23ae6af9d30753e8f4a726504c12f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Tue, 17 Mar 2026 21:29:49 +0800 Subject: [PATCH] =?UTF-8?q?admin:=20=E8=AF=A6=E6=83=85=E9=A1=B5=E9=80=80?= =?UTF-8?q?=E6=AC=BE=E6=B2=BB=E7=90=86=E5=85=A5=E5=8F=A3=E7=9B=B4=E8=BE=BE?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0=E9=80=80=E6=AC=BE=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/admin/platform_orders/show.blade.php | 4 ++-- ...SubscriptionButtonDisabledWhenGovernanceMismatchTest.php | 6 +++--- ...tformOrderShowActivateSubscriptionGovernanceHintTest.php | 2 +- ...latformOrderShowFixReceiptRefundLinksContainBackTest.php | 2 +- ...tformOrderShowMarkPaidAndActivateGovernanceBlockTest.php | 2 +- ...latformOrderShowMarkPaidAndActivateGuidanceLinksTest.php | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) 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