From 806d9fa180f229d0534e6add0dc86aa064820b1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Wed, 18 Mar 2026 03:39:15 +0800 Subject: [PATCH] feat(platform-orders): batch bmpa run badge links align with processable/success filters --- .../views/admin/platform_orders/index.blade.php | 13 ++++++++++--- ...rderIndexBatchBmpaRunIdBadgeShouldRenderTest.php | 8 +++++--- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 477b8d7..ad16639 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -577,8 +577,13 @@ $bmpaGoProcessableUrl = $buildQuickFilterUrl([ 'batch_bmpa_run_id' => $batchBmpaRunId, - 'status' => 'pending', - 'payment_status' => 'unpaid', + 'bmpa_processable_only' => '1', + 'page' => null, + ]); + + $bmpaGoSuccessUrl = $buildQuickFilterUrl([ + 'batch_bmpa_run_id' => $batchBmpaRunId, + 'bmpa_success_only' => '1', 'page' => null, ]); @endphp @@ -596,7 +601,9 @@ 本批次 BMPA 失败 - 本批次可再次尝试(pending+unpaid) + 本批次 BMPA 成功 + + 本批次可再次尝试(可BMPA处理) diff --git a/tests/Feature/AdminPlatformOrderIndexBatchBmpaRunIdBadgeShouldRenderTest.php b/tests/Feature/AdminPlatformOrderIndexBatchBmpaRunIdBadgeShouldRenderTest.php index 9eeec96..06854f0 100644 --- a/tests/Feature/AdminPlatformOrderIndexBatchBmpaRunIdBadgeShouldRenderTest.php +++ b/tests/Feature/AdminPlatformOrderIndexBatchBmpaRunIdBadgeShouldRenderTest.php @@ -35,8 +35,10 @@ class AdminPlatformOrderIndexBatchBmpaRunIdBadgeShouldRenderTest extends TestCas $this->assertStringContainsString('batch_bmpa_run_id=' . $runId, $html); $this->assertStringContainsString('bmpa_failed_only=1', $html); - // 快捷入口:本批次可再次尝试(pending+unpaid) - $this->assertStringContainsString('status=pending', $html); - $this->assertStringContainsString('payment_status=unpaid', $html); + // 快捷入口:本批次可再次尝试(可BMPA处理) + $this->assertStringContainsString('bmpa_processable_only=1', $html); + + // 快捷入口:本批次成功 + $this->assertStringContainsString('bmpa_success_only=1', $html); } }