From 54549ee754af30e41b95c87e5b0bc42e24bf6083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Wed, 11 Mar 2026 08:21:04 +0000 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E8=AE=A2=E5=8D=95=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E5=8C=BA=EF=BC=9A=E5=8F=AF=E5=90=8C=E6=AD=A5+?= =?UTF-8?q?=E6=B2=BB=E7=90=86=E7=AD=9B=E9=80=89=E6=97=B6=E5=8A=A0=E5=BC=BA?= =?UTF-8?q?=E9=A3=8E=E9=99=A9=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/admin/platform_orders/index.blade.php | 8 ++++++++ .../AdminPlatformOrderToolsGovernanceHintTest.php | 11 +++++++++++ 2 files changed, 19 insertions(+) diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 4309e7d..4c16474 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -259,6 +259,7 @@ @php $hasReconcileMismatchFilter = (($filters['reconcile_mismatch'] ?? '') === '1'); $hasRefundInconsistentFilter = (($filters['refund_inconsistent'] ?? '') === '1'); + $hasSyncableOnlyFilter = (($filters['syncable_only'] ?? '') === '1'); @endphp @if($hasReconcileMismatchFilter || $hasRefundInconsistentFilter) @@ -275,6 +276,13 @@ @endif 。建议先完成金额/状态治理(补回执/核对退款)后,再执行批量同步订阅等工具动作。 + + @if($hasSyncableOnlyFilter) +
+ 注意:当前同时勾选了「只看可同步」—— 这类订单会被批量同步订阅命中。若仍存在对账/退款异常,建议先进入治理集合处理完毕,再回到可同步集合执行批量同步。 + 先去治理(取消只看可同步) +
+ @endif @endif
diff --git a/tests/Feature/AdminPlatformOrderToolsGovernanceHintTest.php b/tests/Feature/AdminPlatformOrderToolsGovernanceHintTest.php index a25a364..d646f13 100644 --- a/tests/Feature/AdminPlatformOrderToolsGovernanceHintTest.php +++ b/tests/Feature/AdminPlatformOrderToolsGovernanceHintTest.php @@ -38,4 +38,15 @@ class AdminPlatformOrderToolsGovernanceHintTest extends TestCase ->assertSee('建议先完成金额/状态治理', false) ->assertSee('退款不一致', false); } + + public function test_platform_orders_tools_show_strong_hint_when_syncable_only_and_governance_filters_present(): void + { + $this->loginAsPlatformAdmin(); + + $this->get('/admin/platform-orders?syncable_only=1&reconcile_mismatch=1') + ->assertOk() + ->assertSee('注意:当前同时勾选了「只看可同步」', false) + ->assertSee('先去治理(取消只看可同步)', false) + ->assertSee('syncable_only=', false); + } }