From e5050c8cbc02dee5ef7ebbc4af5b19c202fdd97b Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 6 Feb 2023 20:49:21 +0800 Subject: [PATCH] update --- consume/canal_order_consume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consume/canal_order_consume.go b/consume/canal_order_consume.go index 7a2f2f9..31c40b7 100644 --- a/consume/canal_order_consume.go +++ b/consume/canal_order_consume.go @@ -76,7 +76,7 @@ func handleMallOrdTable(msg []byte) error { if err != nil { return err } - var ordItemListMap map[string]int + var ordItemListMap = map[string]int{} for _, item := range *ordItemList { ordItemListMap[utils.AnyToString(item.OrdId)] = item.GoodsNum }