This commit is contained in:
eson 2023-08-30 11:46:15 +08:00
parent b493a2b149
commit fe6baf6e41

View File

@ -17,6 +17,7 @@ import (
"time"
"github.com/gorilla/websocket"
"github.com/zeromicro/go-zero/core/logx"
"gopkg.in/yaml.v2"
)
@ -86,7 +87,7 @@ func main() {
mux.Handle("/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
err := r.ParseMultipartForm(100 << 20)
if err != nil {
log.Println(err)
logx.Error(err)
}
if strings.HasPrefix(r.URL.Path, "/api/") {