fix(security):修复在获取用户会话以后,用户会话不存在的情况下依旧会保存至上下文的问题。

This commit is contained in:
徐涛
2022-08-12 17:02:44 +08:00
parent b213b32325
commit 7064c26e5e
2 changed files with 21 additions and 6 deletions

View File

@@ -32,7 +32,7 @@ func Recover(c *gin.Context) {
//打印错误堆栈信息
log.Printf("panic: %v\n", r)
debug.PrintStack()
response.NewResult(c).Error(500, "服务器内部错误")
// response.NewResult(c).Error(500, "服务器内部错误")
}
}()
//继续后续接口调用