diff --git a/middleware/middleware.go b/middleware/middleware.go index d58fe14..c04e315 100644 --- a/middleware/middleware.go +++ b/middleware/middleware.go @@ -20,7 +20,7 @@ func CheckToken(ctx *gin.Context) { } if token == "" { - log.Panic("Token不能为空") + log.Panic("Token can't null") } tokenNow := model.GetOne[model.Token]("token=?", token)