Files
junhong_cmp_fiber/migrations/000101_add_activated_polling_config.up.sql
huang 950c0bfb8f
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m3s
fix: 修复已激活在线卡无有效套餐时未被轮询停机的问题
- 新增 activated 轮询配置覆盖已实名+在线的卡(此前仅 real_name 配置)
- HandleCarddataCheck 添加独立停机/复机检查(不依赖流量增量)
- shouldStopCard 对齐 hasAvailablePackage 逻辑,检查待生效+生效中套餐
- 新增复机安全网:流量耗尽停机的卡检测到有效套餐后自动复机
- 卡缓存补充 stop_reason 字段支持复机判断
2026-03-31 20:51:42 +08:00

13 lines
520 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 新增 activated 轮询配置:覆盖已实名+在线的卡
-- 修复问题activated 状态的卡无匹配配置导致不被轮询,套餐过期后无法触发停机
INSERT INTO tb_polling_config (
config_name, card_condition, card_category, carrier_id,
priority, realname_check_interval, carddata_check_interval, package_check_interval,
status, created_at, updated_at
) VALUES (
'已激活在线卡', 'activated', 'normal', 1566,
2, 30, 60, 60,
1, NOW(), NOW()
)
ON CONFLICT DO NOTHING;