fix(admin): remove duplicate route and update batch show tests for linked counts

This commit is contained in:
萝卜
2026-03-17 20:18:52 +08:00
parent 6c3516e66c
commit ffb6999b5a
3 changed files with 7 additions and 7 deletions

View File

@@ -113,12 +113,9 @@ Route::prefix('admin')->group(function () {
Route::get('/platform-orders', [PlatformOrderController::class, 'index']); Route::get('/platform-orders', [PlatformOrderController::class, 'index']);
Route::get('/platform-orders/export', [PlatformOrderController::class, 'export']); Route::get('/platform-orders/export', [PlatformOrderController::class, 'export']);
// 批次复盘页run_id -> last_result -> 一键跳转治理集合
Route::get('/platform-batches/show', [\App\Http\Controllers\Admin\PlatformBatchController::class, 'show']);
Route::get('/platform-orders/create', [PlatformOrderController::class, 'create']);
// 批次详情可复盘BAS/BMPA run_id → last_result + 一键治理入口 // 批次详情可复盘BAS/BMPA run_id → last_result + 一键治理入口
Route::get('/platform-batches/show', [\App\Http\Controllers\Admin\PlatformBatchController::class, 'show']); Route::get('/platform-batches/show', [\App\Http\Controllers\Admin\PlatformBatchController::class, 'show']);
Route::get('/platform-orders/create', [PlatformOrderController::class, 'create']);
Route::post('/platform-orders', [PlatformOrderController::class, 'store']); Route::post('/platform-orders', [PlatformOrderController::class, 'store']);
Route::post('/platform-orders/batch-activate-subscriptions', [PlatformOrderController::class, 'batchActivateSubscriptions']); Route::post('/platform-orders/batch-activate-subscriptions', [PlatformOrderController::class, 'batchActivateSubscriptions']);
Route::post('/platform-orders/batch-mark-paid-and-activate', [PlatformOrderController::class, 'batchMarkPaidAndActivate']); Route::post('/platform-orders/batch-mark-paid-and-activate', [PlatformOrderController::class, 'batchMarkPaidAndActivate']);

View File

@@ -91,7 +91,9 @@ class AdminPlatformBatchShowPageShouldRenderBasSummaryAndGovernanceLinksTest ext
$this->assertStringContainsString('本次处理', $html); $this->assertStringContainsString('本次处理', $html);
$this->assertStringContainsString('4', $html); $this->assertStringContainsString('4', $html);
$this->assertStringContainsString('成功 / 失败', $html); $this->assertStringContainsString('成功 / 失败', $html);
$this->assertStringContainsString('3 / 1', $html); // 数字现在渲染为两个可点击链接(中间用 <span> / </span>),因此不再出现纯文本 "3 / 1"。
$this->assertStringContainsString('data-role="batch-success-count-link"', $html);
$this->assertStringContainsString('data-role="batch-failed-count-link"', $html);
// 治理链接 // 治理链接
$this->assertStringContainsString('batch_activation_run_id=' . $runId, $html); $this->assertStringContainsString('batch_activation_run_id=' . $runId, $html);

View File

@@ -85,9 +85,10 @@ class AdminPlatformBatchShowPageShouldRenderBmpaSummaryAndGovernanceLinksTest ex
$this->assertStringContainsString('BMPA批量标记支付并生效 批次详情', $html); $this->assertStringContainsString('BMPA批量标记支付并生效 批次详情', $html);
$this->assertStringContainsString('run_id<strong>' . $runId . '</strong>', $html); $this->assertStringContainsString('run_id<strong>' . $runId . '</strong>', $html);
// 汇总数字 // 汇总数字(现在渲染为两个可点击链接,不再出现纯文本 "2 / 2"
$this->assertStringContainsString('成功 / 失败', $html); $this->assertStringContainsString('成功 / 失败', $html);
$this->assertStringContainsString('2 / 2', $html); $this->assertStringContainsString('data-role="batch-success-count-link"', $html);
$this->assertStringContainsString('data-role="batch-failed-count-link"', $html);
// 治理链接 // 治理链接
$this->assertStringContainsString('batch_bmpa_run_id=' . $runId, $html); $this->assertStringContainsString('batch_bmpa_run_id=' . $runId, $html);