fix: create key error

This commit is contained in:
Lykin
2024-01-06 22:13:26 +08:00
parent d66d7c9a49
commit ed1b9d9b54
5 changed files with 25 additions and 14 deletions

View File

@@ -685,6 +685,7 @@ func (b *browserService) GetKeyDetail(param types.KeyDetailParam) (resp types.JS
}
var data types.KeyDetail
data.KeyType = strings.ToLower(keyType)
//var cursor uint64
matchPattern := param.MatchPattern
if len(matchPattern) <= 0 {
@@ -728,7 +729,7 @@ func (b *browserService) GetKeyDetail(param types.KeyDetailParam) (resp types.JS
}
}
switch strings.ToLower(keyType) {
switch data.KeyType {
case "string":
var str string
str, err = client.Get(ctx, key).Result()