fix: 修复已激活在线卡无有效套餐时未被轮询停机的问题
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m3s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m3s
- 新增 activated 轮询配置覆盖已实名+在线的卡(此前仅 real_name 配置) - HandleCarddataCheck 添加独立停机/复机检查(不依赖流量增量) - shouldStopCard 对齐 hasAvailablePackage 逻辑,检查待生效+生效中套餐 - 新增复机安全网:流量耗尽停机的卡检测到有效套餐后自动复机 - 卡缓存补充 stop_reason 字段支持复机判断
This commit is contained in:
2
migrations/000101_add_activated_polling_config.down.sql
Normal file
2
migrations/000101_add_activated_polling_config.down.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
DELETE FROM tb_polling_config
|
||||
WHERE config_name = '已激活在线卡' AND card_condition = 'activated';
|
||||
12
migrations/000101_add_activated_polling_config.up.sql
Normal file
12
migrations/000101_add_activated_polling_config.up.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- 新增 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;
|
||||
Reference in New Issue
Block a user