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
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user