update go mod

This commit is contained in:
2023-08-11 15:21:13 +08:00
parent c93cf01fe0
commit 817a4a8310
3 changed files with 17 additions and 4 deletions

View File

@ -9,13 +9,13 @@ package middleware
import (
"fmt"
"git.zhangdeman.cn/zhangdeman/wrapper"
"strings"
"time"
"git.zhangdeman.cn/zhangdeman/gin/define"
networkUtil "git.zhangdeman.cn/zhangdeman/network/util"
"git.zhangdeman.cn/zhangdeman/util"
"github.com/gin-gonic/gin"
)
@ -46,7 +46,7 @@ func getTraceID(ctx *gin.Context) string {
time.Now().UnixNano()/1e6,
strings.ReplaceAll(networkUtil.IP.GetHostIP(), ".", ""),
strings.ReplaceAll(networkUtil.IP.GetRemoteIP(ctx.Request), ".", ""),
util.String.Md5(util.String.GenRandom("", 32)),
wrapper.StringFromRandom(32, "").Md5(),
)
}