From b47674ff05b80fd075b67213b91b0994517b1046 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 15 Aug 2023 13:41:59 +0800 Subject: [PATCH] test --- app/task/svc/svc_playlet_order_settle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/task/svc/svc_playlet_order_settle.go b/app/task/svc/svc_playlet_order_settle.go index d659929..c5c409a 100644 --- a/app/task/svc/svc_playlet_order_settle.go +++ b/app/task/svc/svc_playlet_order_settle.go @@ -36,7 +36,7 @@ func PlayletOrderSettle() { for _, v := range order { fmt.Println("=================00") // 加锁 防止并发提取 - mutexKey := fmt.Sprintf("playlet_order_settle3:%s", v.CustomOid) + mutexKey := fmt.Sprintf("playlet_order_settle3:%d", v.Id) withdrawAvailable, err := cache.Do("SET", mutexKey, 1, "EX", 1800, "NX") if err != nil { fmt.Println("=================0")