优化代码

This commit is contained in:
刘祥超
2024-01-13 19:33:29 +08:00
parent 5052d20fbd
commit aca128c19d
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
}
}
// 流量限制