upgrade: update wrapper
This commit is contained in:
@ -12,7 +12,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.zhangdeman.cn/zhangdeman/wrapper"
|
"git.zhangdeman.cn/zhangdeman/wrapper/op_string"
|
||||||
|
|
||||||
"git.zhangdeman.cn/zhangdeman/gin/define"
|
"git.zhangdeman.cn/zhangdeman/gin/define"
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ func getTraceID(ctx *gin.Context) string {
|
|||||||
time.Now().UnixNano()/1e6,
|
time.Now().UnixNano()/1e6,
|
||||||
strings.ReplaceAll(networkUtil.IP.GetHostIP(), ".", ""),
|
strings.ReplaceAll(networkUtil.IP.GetHostIP(), ".", ""),
|
||||||
strings.ReplaceAll(networkUtil.IP.GetRemoteIP(ctx.Request), ".", ""),
|
strings.ReplaceAll(networkUtil.IP.GetRemoteIP(ctx.Request), ".", ""),
|
||||||
wrapper.StringFromRandom(32, "").Md5().Value,
|
op_string.Md5(op_string.Random(32, "")).Value,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user