🎨 更新项目版本
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"time"
|
||||
|
||||
"git.echol.cn/loser/lckt/global"
|
||||
"github.com/mojocn/base64Captcha"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
@@ -23,8 +22,10 @@ type RedisStore struct {
|
||||
Context context.Context
|
||||
}
|
||||
|
||||
func (rs *RedisStore) UseWithCtx(ctx context.Context) base64Captcha.Store {
|
||||
rs.Context = ctx
|
||||
func (rs *RedisStore) UseWithCtx(ctx context.Context) *RedisStore {
|
||||
if ctx == nil {
|
||||
rs.Context = ctx
|
||||
}
|
||||
return rs
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user