优化代码

This commit is contained in:
GoEdgeLab
2024-01-13 19:33:29 +08:00
parent a16106a835
commit 0446e6ed9e
3 changed files with 15 additions and 23 deletions

View File

@@ -193,10 +193,11 @@ func (this *HTTPRequest) Do() {
}
// 套餐
if this.ReqServer.UserPlan != nil && !this.ReqServer.UserPlan.IsAvailable() {
this.doPlanExpires()
this.doEnd()
return
if this.ReqServer.UserPlan != nil {
if this.doPlanBefore() {
this.doEnd()
return
}
}
// 流量限制