feat:完善项目

This commit is contained in:
henry
2022-01-15 11:54:05 +08:00
parent 048d116b05
commit c5fb6023f3
18 changed files with 191 additions and 129 deletions

View File

@ -4,7 +4,6 @@ import (
"SciencesServer/config"
"SciencesServer/serve/logger"
"context"
"fmt"
"net/http"
"time"
@ -86,7 +85,7 @@ func RecoveryHandler() gin.HandlerFunc {
return func(c *gin.Context) {
defer func() {
if err := recover(); err != nil {
fmt.Printf("Recoverrequest【%s】 error【%v】\n", c.Request.URL, err)
//fmt.Printf("Recoverrequest【%s】 error【%v】\n", c.Request.URL, err)
c.JSON(http.StatusInternalServerError, gin.H{
"message": "Internal Server Error",
})