Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop

This commit is contained in:
eson
2023-06-27 18:10:18 +08:00
23 changed files with 946 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
package id_generator
import (
"fmt"
"math/rand"
"strings"
"time"
)
func GenPickUpTrackNum() string {
a := fmt.Sprintf("%s%.8d", time.Now().Format("20060102150405.000"), rand.Intn(1000000))
return strings.ReplaceAll(a, ".", "")
}