添加jwt请求验证功能

This commit is contained in:
2025-08-10 20:34:58 +08:00
parent f41a1a02d6
commit d490ecb405
5 changed files with 16 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ func RedisInit() error {
// 测试连接
_, err = RedisClient.Ping(Ctx).Result()
if err != nil {
return fmt.Errorf("Redis连接失败: %w", err)
panic(fmt.Errorf("Redis连接失败: %w", err))
}
fmt.Println("Redis连接初始化成功")