mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-08 07:50:28 +08:00
重新实现套餐相关功能
This commit is contained in:
@@ -41,6 +41,7 @@ func (this *CleanSettingAction) RunPost(params struct {
|
|||||||
ServerAccessLogCleanDays int
|
ServerAccessLogCleanDays int
|
||||||
ServerBandwidthStatCleanDays int
|
ServerBandwidthStatCleanDays int
|
||||||
UserBandwidthStatCleanDays int
|
UserBandwidthStatCleanDays int
|
||||||
|
UserPlanBandwidthStatCleanDays int
|
||||||
ServerDailyStatCleanDays int
|
ServerDailyStatCleanDays int
|
||||||
ServerDomainHourlyStatCleanDays int
|
ServerDomainHourlyStatCleanDays int
|
||||||
TrafficDailyStatCleanDays int
|
TrafficDailyStatCleanDays int
|
||||||
@@ -85,6 +86,11 @@ func (this *CleanSettingAction) RunPost(params struct {
|
|||||||
}
|
}
|
||||||
config.UserBandwidthStat.Clean.Days = params.UserBandwidthStatCleanDays
|
config.UserBandwidthStat.Clean.Days = params.UserBandwidthStatCleanDays
|
||||||
|
|
||||||
|
if params.UserPlanBandwidthStatCleanDays < 0 {
|
||||||
|
params.UserPlanBandwidthStatCleanDays = 0
|
||||||
|
}
|
||||||
|
config.UserPlanBandwidthStat.Clean.Days = params.UserPlanBandwidthStatCleanDays
|
||||||
|
|
||||||
if params.ServerDailyStatCleanDays < 0 {
|
if params.ServerDailyStatCleanDays < 0 {
|
||||||
params.ServerDailyStatCleanDays = 0
|
params.ServerDailyStatCleanDays = 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,6 +54,20 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<h4 style="margin-top: 0">用户套餐带宽统计</h4>
|
||||||
|
<table class="ui table definition selectable">
|
||||||
|
<tr>
|
||||||
|
<td class="title">数据保存天数 *</td>
|
||||||
|
<td>
|
||||||
|
<div class="ui input right labeled">
|
||||||
|
<input type="text" name="userPlanBandwidthStatCleanDays" v-model="config.userPlanBandwidthStat.clean.days" style="width:6em" maxlength="6"/>
|
||||||
|
<span class="ui label">天</span>
|
||||||
|
</div>
|
||||||
|
<p class="comment"><pro-warning-label></pro-warning-label></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
<h4 style="margin-top: 0">网站流量统计</h4>
|
<h4 style="margin-top: 0">网站流量统计</h4>
|
||||||
<table class="ui table definition selectable">
|
<table class="ui table definition selectable">
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user