fix: remove redundant LOGIN type, rename KILL label to \u6d3b\u8dc3\u5ea6

- LOGIN type duplicated with KILL (both use days_since_last_login)

- KILL label: \u5c01\u53f7\u89c4\u5219 \u2192 \u6d3b\u8dc3\u5ea6 (action is always \u5c01\u53f7/\u5220\u9664\u8d26\u53f7, type now describes monitoring category)
This commit is contained in:
mediabot-pt
2026-07-06 22:00:10 +08:00
parent 3209ff16d6
commit 5f57453af9

View File

@@ -165,9 +165,8 @@ import api from '../api'
// ============ 选项配置 ============ // ============ 选项配置 ============
const typeOptions = [ const typeOptions = [
{ value: 'KILL', label: '封号规则' }, { value: 'KILL', label: '活跃度' },
{ value: 'TRAFFIC', label: '流量监控' }, { value: 'TRAFFIC', label: '流量' },
{ value: 'LOGIN', label: '登录监控' },
{ value: 'HD', label: 'H&R' }, { value: 'HD', label: 'H&R' },
{ value: 'RATIO', label: '分享率' }, { value: 'RATIO', label: '分享率' },
] ]
@@ -201,7 +200,6 @@ const typeLabel = (t) => typeOptions.find(x => x.value === t)?.label || t
const typeDefaults = { const typeDefaults = {
KILL: { metric:'days_since_last_login', condition:'GT', unit:'天' }, KILL: { metric:'days_since_last_login', condition:'GT', unit:'天' },
TRAFFIC: { metric:'days_since_last_traffic', condition:'GT', unit:'天' }, TRAFFIC: { metric:'days_since_last_traffic', condition:'GT', unit:'天' },
LOGIN: { metric:'days_since_last_login', condition:'GT', unit:'天' },
HD: { metric:'hnr_count', condition:'GTE', unit:'次' }, HD: { metric:'hnr_count', condition:'GTE', unit:'次' },
RATIO: { metric:'ratio', condition:'LT', unit:'' }, RATIO: { metric:'ratio', condition:'LT', unit:'' },
} }