mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	重新实现套餐相关功能
This commit is contained in:
		@@ -41,6 +41,7 @@ func (this *CleanSettingAction) RunPost(params struct {
 | 
			
		||||
	ServerAccessLogCleanDays             int
 | 
			
		||||
	ServerBandwidthStatCleanDays         int
 | 
			
		||||
	UserBandwidthStatCleanDays           int
 | 
			
		||||
	UserPlanBandwidthStatCleanDays       int
 | 
			
		||||
	ServerDailyStatCleanDays             int
 | 
			
		||||
	ServerDomainHourlyStatCleanDays      int
 | 
			
		||||
	TrafficDailyStatCleanDays            int
 | 
			
		||||
@@ -85,6 +86,11 @@ func (this *CleanSettingAction) RunPost(params struct {
 | 
			
		||||
	}
 | 
			
		||||
	config.UserBandwidthStat.Clean.Days = params.UserBandwidthStatCleanDays
 | 
			
		||||
 | 
			
		||||
	if params.UserPlanBandwidthStatCleanDays < 0 {
 | 
			
		||||
		params.UserPlanBandwidthStatCleanDays = 0
 | 
			
		||||
	}
 | 
			
		||||
	config.UserPlanBandwidthStat.Clean.Days = params.UserPlanBandwidthStatCleanDays
 | 
			
		||||
 | 
			
		||||
	if params.ServerDailyStatCleanDays < 0 {
 | 
			
		||||
		params.ServerDailyStatCleanDays = 0
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -54,6 +54,20 @@
 | 
			
		||||
            </tr>
 | 
			
		||||
        </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>
 | 
			
		||||
        <table class="ui table definition selectable">
 | 
			
		||||
            <tr>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user