refactor: 动态分享率 → 分享率
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- DRATIO 动态分享率 -->
|
||||
<!-- DRATIO 分享率 -->
|
||||
<template v-else-if="rule.type==='DRATIO'">
|
||||
<div v-for="(lv, li) in (rule.levels||[])" :key="li" class="field-row">
|
||||
<span class="field-label">下载量 ≥</span>
|
||||
@@ -195,7 +195,7 @@ const typeOptions = [
|
||||
{ value: 'HD', label: 'H&R' },
|
||||
{ value: 'RATIO', label: '分享率' },
|
||||
{ value: 'TASK', label: '新人考核' },
|
||||
{ value: 'DRATIO', label: '动态分享率' },
|
||||
{ value: 'DRATIO', label: '分享率' },
|
||||
{ value: 'EXEMPT', label: '等级豁免' },
|
||||
]
|
||||
const condOptions = [
|
||||
@@ -272,8 +272,8 @@ const presets = [
|
||||
{ name:'H&R 封号', type:'HD', metric:'hnr_count', threshold:5, unit:'次', condition:'GTE', description:'H&R违规次数达到5次即封号' },
|
||||
// 新人考核
|
||||
{ name:'新人考核', type:'TASK', threshold:30, unit:'天', description:'新注册用户需在考核周期内完成各项要求' },
|
||||
// 动态分享率
|
||||
{ name:'动态分享率', type:'DRATIO', levels:[{threshold:100,ratio:0.3},{threshold:500,ratio:0.5},{threshold:1000,ratio:0.8}], description:'下载量越大,允许的最低分享率越低' },
|
||||
// 分享率
|
||||
{ name:'分享率', type:'DRATIO', levels:[{threshold:100,ratio:0.3},{threshold:500,ratio:0.5},{threshold:1000,ratio:0.8}], description:'下载量越大,允许的最低分享率越低' },
|
||||
// 等级豁免
|
||||
{ name:'等级豁免', type:'EXEMPT', permRank:'Elite User', sealExemptRank:'Power User', description:'达到等级的账号可豁免清理' },
|
||||
]
|
||||
@@ -339,7 +339,7 @@ const ruleText = (r) => {
|
||||
const val = `${metric}${cond}${r.threshold}${r.unit||''}`
|
||||
if (r.type === 'DRATIO') {
|
||||
const levels = (r.levels||[]).map(l => `下载量≥${l.threshold}GB时分享率<${l.ratio}`).join(',')
|
||||
return `动态分享率:${levels} → <span style="color:#e6a23c;font-weight:500">封号(缓刑7天)</span>${appText}`
|
||||
return `分享率:${levels} → <span style="color:#e6a23c;font-weight:500">封号(缓刑7天)</span>${appText}`
|
||||
}
|
||||
if (r.type === 'RATIO') {
|
||||
return `分享率:${val} → <span style="color:#e6a23c;font-weight:500">封号(缓刑7天)</span>${appText}`
|
||||
|
||||
Reference in New Issue
Block a user