更新类型处理
This commit is contained in:
parent
b0d67ca05a
commit
f3170976fd
@ -9,6 +9,7 @@ package redis
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -219,7 +220,7 @@ func (c *Client) CommandProxy(ctx *Context, flag string, cmd string, param ...in
|
|||||||
startTime := time.Now().Unix()
|
startTime := time.Now().Unix()
|
||||||
cmdResult := realClient.Instance.Do(ctx.Ctx, redisCmd...)
|
cmdResult := realClient.Instance.Do(ctx.Ctx, redisCmd...)
|
||||||
go c.log(ctx, realClient, cmdResult, startTime, time.Now().UnixNano())
|
go c.log(ctx, realClient, cmdResult, startTime, time.Now().UnixNano())
|
||||||
return cmdResult.String(), c.parseErrorFunc(cmdResult.Err())
|
return fmt.Sprintf("%v", cmdResult.Val()), c.parseErrorFunc(cmdResult.Err())
|
||||||
}
|
}
|
||||||
|
|
||||||
// CommandProxyWithReceiver 执行命令,并解析结果
|
// CommandProxyWithReceiver 执行命令,并解析结果
|
||||||
|
Loading…
Reference in New Issue
Block a user