mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2025-09-17 22:09:14 +08:00
由gopath形式改为module
This commit is contained in:
19
legend/controllers/expection/expection.go
Normal file
19
legend/controllers/expection/expection.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package expection
|
||||
|
||||
import (
|
||||
"github.com/beego/beego/v2/server/web"
|
||||
"html/template"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func PageNotFind(rw http.ResponseWriter, r *http.Request) {
|
||||
t, _ := template.New("404.html").ParseFiles(web.BConfig.WebConfig.ViewsPath + "/error/404.html")
|
||||
data := make(map[string]interface{})
|
||||
t.Execute(rw, data)
|
||||
}
|
||||
|
||||
func SystemExpection(rw http.ResponseWriter, r *http.Request) {
|
||||
t, _ := template.New("503.html").ParseFiles(web.BConfig.WebConfig.ViewsPath + "/error/503.html")
|
||||
data := make(map[string]interface{})
|
||||
t.Execute(rw, data)
|
||||
}
|
Reference in New Issue
Block a user