2021-11-09 15:36:05 +08:00
|
|
|
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
|
|
|
|
|
|
|
|
|
package nodes
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs"
|
|
|
|
|
"net/http"
|
|
|
|
|
)
|
|
|
|
|
|
2021-11-09 17:36:49 +08:00
|
|
|
// 套餐过期
|
2021-11-09 15:36:05 +08:00
|
|
|
func (this *HTTPRequest) doPlanExpires() {
|
|
|
|
|
this.tags = append(this.tags, "plan")
|
|
|
|
|
|
|
|
|
|
var statusCode = http.StatusNotFound
|
2022-09-23 14:21:53 +08:00
|
|
|
this.processResponseHeaders(this.writer.Header(), statusCode)
|
2021-11-09 15:36:05 +08:00
|
|
|
|
|
|
|
|
this.writer.WriteHeader(statusCode)
|
2021-12-02 14:46:40 +08:00
|
|
|
_, _ = this.writer.WriteString(this.Format(serverconfigs.DefaultPlanExpireNoticePageBody))
|
2021-11-09 15:36:05 +08:00
|
|
|
}
|