yansen 6 anni fa
parent
commit
214bcdbff0
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5
    1
      service/goods/orders.go

+ 5
- 1
service/goods/orders.go Vedi File

17
 	"github.com/yl10/kit/guid"
17
 	"github.com/yl10/kit/guid"
18
 )
18
 )
19
 
19
 
20
-var mtx sync.Mutex
20
+var mtx *sync.Mutex
21
 
21
 
22
 // Orders 下单
22
 // Orders 下单
23
 func (s *GoodsServ) Orders(
23
 func (s *GoodsServ) Orders(
595
 
595
 
596
 	return order, nil
596
 	return order, nil
597
 }
597
 }
598
+
599
+func init() {
600
+	mtx = new(sync.Mutex)
601
+}