File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
internal/web/actions/default/settings/database
web/views/@default/settings/database Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ func (this *CleanSettingAction) RunPost(params struct {
4141 ServerAccessLogCleanDays int
4242 ServerBandwidthStatCleanDays int
4343 UserBandwidthStatCleanDays int
44+ UserPlanBandwidthStatCleanDays int
4445 ServerDailyStatCleanDays int
4546 ServerDomainHourlyStatCleanDays int
4647 TrafficDailyStatCleanDays int
@@ -85,6 +86,11 @@ func (this *CleanSettingAction) RunPost(params struct {
8586 }
8687 config .UserBandwidthStat .Clean .Days = params .UserBandwidthStatCleanDays
8788
89+ if params .UserPlanBandwidthStatCleanDays < 0 {
90+ params .UserPlanBandwidthStatCleanDays = 0
91+ }
92+ config .UserPlanBandwidthStat .Clean .Days = params .UserPlanBandwidthStatCleanDays
93+
8894 if params .ServerDailyStatCleanDays < 0 {
8995 params .ServerDailyStatCleanDays = 0
9096 }
Original file line number Diff line number Diff line change @@ -54,6 +54,20 @@ <h4 style="margin-top: 0">用户带宽统计</h4>
5454 </ tr >
5555 </ table >
5656
57+ < h4 style ="margin-top: 0 "> 用户套餐带宽统计</ h4 >
58+ < table class ="ui table definition selectable ">
59+ < tr >
60+ < td class ="title "> 数据保存天数 *</ td >
61+ < td >
62+ < div class ="ui input right labeled ">
63+ < input type ="text " name ="userPlanBandwidthStatCleanDays " v-model ="config.userPlanBandwidthStat.clean.days " style ="width:6em " maxlength ="6 "/>
64+ < span class ="ui label "> 天</ span >
65+ </ div >
66+ < p class ="comment "> < pro-warning-label > </ pro-warning-label > </ p >
67+ </ td >
68+ </ tr >
69+ </ table >
70+
5771 < h4 style ="margin-top: 0 "> 网站流量统计</ h4 >
5872 < table class ="ui table definition selectable ">
5973 < tr >
You can’t perform that action at this time.
0 commit comments