添加jwt请求验证功能
This commit is contained in:
@@ -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连接初始化成功")
|
||||
|
||||
Reference in New Issue
Block a user