diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 3ed5102..714d03d 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1132,10 +1132,16 @@ @if(! $isFullView) @if($syncErr !== '') -
原因:{{ mb_substr($syncErr, 0, $SYNC_FAILED_REASON_TRUNCATE_LEN) }}
+
+ 原因 + {{ mb_substr($syncErr, 0, $SYNC_FAILED_REASON_TRUNCATE_LEN) }} +
@endif @if($bmpaErrCompact !== '') -
BMPA:{{ mb_substr($bmpaErrCompact, 0, $SYNC_FAILED_REASON_TRUNCATE_LEN) }}
+
+ BMPA + {{ mb_substr($bmpaErrCompact, 0, $SYNC_FAILED_REASON_TRUNCATE_LEN) }} +
@endif @endif diff --git a/tests/Feature/AdminPlatformOrderIndexCompactViewSyncStatusShowsReasonTest.php b/tests/Feature/AdminPlatformOrderIndexCompactViewSyncStatusShowsReasonTest.php index eba44bd..dc68a47 100644 --- a/tests/Feature/AdminPlatformOrderIndexCompactViewSyncStatusShowsReasonTest.php +++ b/tests/Feature/AdminPlatformOrderIndexCompactViewSyncStatusShowsReasonTest.php @@ -70,8 +70,10 @@ class AdminPlatformOrderIndexCompactViewSyncStatusShowsReasonTest extends TestCa // 默认精简视图:应显示原因(full 视图仍由“失败原因”列承载) $this->get('/admin/platform-orders') ->assertOk() - ->assertSee('原因:SIMULATED_SYNC_ERROR', false) - ->assertSee('BMPA:SIMULATED_BMPA_ERROR', false); + ->assertSee('原因', false) + ->assertSee('SIMULATED_SYNC_ERROR', false) + ->assertSee('BMPA', false) + ->assertSee('SIMULATED_BMPA_ERROR', false); // full 视图:不强制在该单元格重复显示(避免信息过载),这里确保不出现 compact 的前缀文案 $this->get('/admin/platform-orders?view=full') diff --git a/tests/Feature/AdminPlatformOrderIndexRowWarnClassTest.php b/tests/Feature/AdminPlatformOrderIndexRowWarnClassTest.php index 2e0a759..81e2b3c 100644 --- a/tests/Feature/AdminPlatformOrderIndexRowWarnClassTest.php +++ b/tests/Feature/AdminPlatformOrderIndexRowWarnClassTest.php @@ -72,8 +72,10 @@ class AdminPlatformOrderIndexRowWarnClassTest extends TestCase $res->assertOk(); $res->assertSee('row-warn', false); - $res->assertSee('原因:SIM_SYNC_ERR', false); - $res->assertSee('BMPA:SIM_BMPA_ERR', false); + $res->assertSee('原因', false); + $res->assertSee('SIM_SYNC_ERR', false); + $res->assertSee('BMPA', false); + $res->assertSee('SIM_BMPA_ERR', false); $res->assertSee('无回执', false); } }