Skip to content
Snippets Groups Projects
Commit bc184e60 authored by lizhipeng's avatar lizhipeng
Browse files

update uuid to v1.2.0

parent a1fbb398
No related branches found
No related tags found
No related merge requests found
......@@ -175,7 +175,10 @@ func WithToken(token string) option {
if len(token) > 0 {
value := token
if strings.ToLower(token) == "true" || strings.ToLower(token) == "default" {
value = uuid.NewV4().String()
UUID, err := uuid.NewV4()
if err == nil {
value = UUID.String()
}
}
url.SetParam(constant.TOKEN_KEY, value)
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment