diff --git a/app/Http/Controllers/Admin/PlatformBatchController.php b/app/Http/Controllers/Admin/PlatformBatchController.php index 286707e..aa9d47b 100644 --- a/app/Http/Controllers/Admin/PlatformBatchController.php +++ b/app/Http/Controllers/Admin/PlatformBatchController.php @@ -134,10 +134,10 @@ class PlatformBatchController extends Controller 'bmpa_failed_only' => '1', ]), $safeBackForLinks, 'filters'); + // 本批次可再次尝试:对齐仪表盘/列表的“真正可BMPA处理集合”口径。 $governanceLinks['retry_processable'] = BackUrl::withBackAndFragment('/admin/platform-orders?' . \Illuminate\Support\Arr::query([ 'batch_bmpa_run_id' => $runId, - 'status' => 'pending', - 'payment_status' => 'unpaid', + 'bmpa_processable_only' => '1', ]), $safeBackForLinks, 'filters'); $topReason = (string) (data_get($summary, 'top_reasons.0.reason') ?? ''); diff --git a/resources/views/admin/platform_batches/show.blade.php b/resources/views/admin/platform_batches/show.blade.php index 4106cde..affc3d4 100644 --- a/resources/views/admin/platform_batches/show.blade.php +++ b/resources/views/admin/platform_batches/show.blade.php @@ -137,7 +137,7 @@ @endif @if(($governanceLinks['retry_processable'] ?? '') !== '') - 本批次可再次尝试(pending+unpaid) + 本批次可再次尝试(可BMPA处理) @endif
说明:当前批次为“冗余写入到每条订单 meta.last_result”的模式;后续可演进为独立批次表。
diff --git a/tests/Feature/AdminPlatformBatchShowPageShouldRenderBmpaSummaryAndGovernanceLinksTest.php b/tests/Feature/AdminPlatformBatchShowPageShouldRenderBmpaSummaryAndGovernanceLinksTest.php index 9ca895d..74a65d9 100644 --- a/tests/Feature/AdminPlatformBatchShowPageShouldRenderBmpaSummaryAndGovernanceLinksTest.php +++ b/tests/Feature/AdminPlatformBatchShowPageShouldRenderBmpaSummaryAndGovernanceLinksTest.php @@ -93,8 +93,7 @@ class AdminPlatformBatchShowPageShouldRenderBmpaSummaryAndGovernanceLinksTest ex // 治理链接 $this->assertStringContainsString('batch_bmpa_run_id=' . $runId, $html); $this->assertStringContainsString('bmpa_failed_only=1', $html); - $this->assertStringContainsString('status=pending', $html); - $this->assertStringContainsString('payment_status=unpaid', $html); + $this->assertStringContainsString('bmpa_processable_only=1', $html); $this->assertStringContainsString('bmpa_error_keyword=', $html); $this->assertStringContainsString(urlencode('模拟失败:订单不是待处理+未支付'), $html); } diff --git a/tests/Feature/AdminPlatformBatchShowPageShouldRenderForBmpaTest.php b/tests/Feature/AdminPlatformBatchShowPageShouldRenderForBmpaTest.php index 2db4ac9..f2f1a00 100644 --- a/tests/Feature/AdminPlatformBatchShowPageShouldRenderForBmpaTest.php +++ b/tests/Feature/AdminPlatformBatchShowPageShouldRenderForBmpaTest.php @@ -91,8 +91,7 @@ class AdminPlatformBatchShowPageShouldRenderForBmpaTest extends TestCase $this->assertStringContainsString('bmpa_error_keyword=', $html); $this->assertStringContainsString(urlencode('模拟失败:订单不是待处理+未支付'), $html); - // 治理入口:本批次可再次尝试(pending+unpaid) - $this->assertStringContainsString('status=pending', $html); - $this->assertStringContainsString('payment_status=unpaid', $html); + // 治理入口:本批次可再次尝试(可BMPA处理) + $this->assertStringContainsString('bmpa_processable_only=1', $html); } }