From 7e866b3f1f1c082a63b54aa1e37f193b9ac07911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Wed, 19 Jun 2024 20:59:20 +0800 Subject: [PATCH] fix --- client.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/client.go b/client.go index de19571..f08204b 100644 --- a/client.go +++ b/client.go @@ -9,15 +9,16 @@ package redis import ( "context" - "git.zhangdeman.cn/zhangdeman/redis/abstract" - "git.zhangdeman.cn/zhangdeman/redis/define" - "git.zhangdeman.cn/zhangdeman/wrapper" - "github.com/pkg/errors" - redisClient "github.com/redis/go-redis/v9" - "go.uber.org/zap" "strings" "sync" "time" + + "git.zhangdeman.cn/zhangdeman/redis/abstract" + "git.zhangdeman.cn/zhangdeman/redis/define" + wrapperOperate "git.zhangdeman.cn/zhangdeman/wrapper" + "github.com/pkg/errors" + redisClient "github.com/redis/go-redis/v9" + "go.uber.org/zap" ) var Client abstract.IRedisClient @@ -67,7 +68,7 @@ func (o *OwnClient) Exec(ctx context.Context, instanceFlag string, command strin } argStrList := make([]string, 0) for _, itemArg := range args { - argStrList = append(argStrList, wrapper.AnyDataType(itemArg).ToString().Value()) + argStrList = append(argStrList, wrapperOperate.AnyDataType(itemArg).ToString().Value()) cmdParamList = append(cmdParamList, itemArg) } res := &define.RedisResult{