From 34382b0c07892be09e5a6cbbba4fabdc77fb0641 Mon Sep 17 00:00:00 2001 From: htdcx Date: Fri, 24 May 2024 16:32:51 +0800 Subject: [PATCH] Update middleware.go --- middleware/middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)