Browse Source

wip:订单编号池

wangshan 1 year ago
parent
commit
4e83c403a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/ordercode.go

+ 1 - 1
public/ordercode.go

@@ -26,7 +26,7 @@ func (o *orderCode) gc() {
 	})
 	time.AfterFunc(24*time.Hour, o.gc)
 }
-func init() {
+func OrderCodePoolInit() {
 	VarOrderCode = &orderCode{
 		Pool: make(chan string, 20),
 		All:  &sync.Map{},