Governance UI: block batch mark activated in renewal missing subscription scope

This commit is contained in:
萝卜
2026-03-17 01:32:52 +08:00
parent 622c9be21e
commit 387b18d32b
2 changed files with 41 additions and 0 deletions

View File

@@ -122,6 +122,11 @@ class PlatformOrderToolsGuard
*/
public static function batchMarkActivatedReason(array $filters): string
{
// 治理集合优先:续费单未绑定订阅属于高风险治理集合,不允许直接批量生效。
if ((string) ($filters['renewal_missing_subscription'] ?? '') === '1') {
return '当前集合为「续费单未绑定订阅」治理集合:请先完成订阅绑定/修复关联后再批量仅标记为已生效。';
}
if ((string) ($filters['payment_status'] ?? '') !== 'paid' || (string) ($filters['status'] ?? '') !== 'pending') {
return '请先筛选「支付状态=已支付」且「订单状态=待处理」再执行批量生效。';
}