upgrade: update wrapper
This commit is contained in:
4
util.go
4
util.go
@ -15,14 +15,14 @@ import (
|
||||
"git.zhangdeman.cn/zhangdeman/consts"
|
||||
"git.zhangdeman.cn/zhangdeman/network/util"
|
||||
"git.zhangdeman.cn/zhangdeman/serialize"
|
||||
"git.zhangdeman.cn/zhangdeman/wrapper"
|
||||
"git.zhangdeman.cn/zhangdeman/wrapper/op_any"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func getStrVal(ctx context.Context, key string) string {
|
||||
val := ctx.Value(key)
|
||||
if nil != val {
|
||||
return wrapper.AnyDataType(val).ToString().Value()
|
||||
return op_any.AnyDataType(val).ToString()
|
||||
}
|
||||
if v := ctx.Value(consts.GinContextDataField); nil != v {
|
||||
if data, ok := v.(map[string]any); ok {
|
||||
|
Reference in New Issue
Block a user