mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2024-12-27 12:42:24 +08:00
20 lines
543 B
Go
20 lines
543 B
Go
|
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)
|
||
|
}
|