From d7c4fc9d178d9994a05aba96bc89df414b0a2472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Mon, 16 Mar 2026 19:15:11 +0800 Subject: [PATCH] fix(platform-orders): syncable_only filter should only apply when value is 1 --- app/Http/Controllers/Admin/PlatformOrderController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/PlatformOrderController.php b/app/Http/Controllers/Admin/PlatformOrderController.php index ee8518d..25f1c2a 100644 --- a/app/Http/Controllers/Admin/PlatformOrderController.php +++ b/app/Http/Controllers/Admin/PlatformOrderController.php @@ -2244,7 +2244,7 @@ class PlatformOrderController extends Controller $builder->whereRaw("JSON_UNQUOTE(JSON_EXTRACT(meta, '$.batch_mark_paid_and_activate_error.message')) LIKE ?", ['%' . $kw . '%']); } }) - ->when(($filters['syncable_only'] ?? '') !== '', function (Builder $builder) { + ->when(($filters['syncable_only'] ?? '') === '1', function (Builder $builder) { // 只看可同步:已支付 + 已生效 + 尚未写入 subscription_activation.subscription_id // 额外治理口径:排除(续费但未绑定订阅)的脏数据,避免误入可同步集合导致串单风险 $builder->where('payment_status', 'paid')