add recover

This commit is contained in:
lwl0608 2024-02-20 00:37:13 +08:00
parent 8e134f4db5
commit 272210b23a
1 changed files with 1 additions and 0 deletions

View File

@ -493,6 +493,7 @@ func Prepare() gin.HandlerFunc {
func PrepareToC() gin.HandlerFunc { func PrepareToC() gin.HandlerFunc {
return func(ctx *gin.Context) { return func(ctx *gin.Context) {
defer logger.Recover()
// if !wsign.CheckSignature(ctx) { // if !wsign.CheckSignature(ctx) {
// ReplyErrCodeMsg(ctx, errcode.ErrCodeCheckSignatureFail) // ReplyErrCodeMsg(ctx, errcode.ErrCodeCheckSignatureFail)
// return // return