Browse Source

Bug Fix

pull/30/head
Zhou Weitong 7 years ago committed by GitHub
parent
commit
05cb998729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      utils/uid/uuid.go

2
utils/uid/uuid.go

@ -6,7 +6,7 @@ import (
) )
func NewId() string { func NewId() string {
id := uuid.NewV4() id,_ := uuid.NewV4()
b64 := base64.URLEncoding.EncodeToString(id.Bytes()[:12]) b64 := base64.URLEncoding.EncodeToString(id.Bytes()[:12])
return b64 return b64
} }

Loading…
Cancel
Save