- use millisecond as temp id.

This commit is contained in:
gazebo
2018-09-25 21:47:45 +08:00
parent 95d91e63dc
commit 7499018f11
2 changed files with 2 additions and 2 deletions

View File

@@ -130,5 +130,5 @@ func genPicFileName(suffix string) string {
// 生成一个不重复的临时ID
func genTmpID() int64 {
return time.Now().UnixNano()
return time.Now().UnixNano() / 1000000
}