From e9d5893843787c2e83515b8680201031f0387169 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 15 Aug 2023 11:09:43 +0800 Subject: [PATCH] test --- app/task/svc/svc_playlet_order_settle.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/task/svc/svc_playlet_order_settle.go b/app/task/svc/svc_playlet_order_settle.go index fb5cead..d659929 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_settle2:%s", v.CustomOid) + mutexKey := fmt.Sprintf("playlet_order_settle3:%s", v.CustomOid) withdrawAvailable, err := cache.Do("SET", mutexKey, 1, "EX", 1800, "NX") if err != nil { fmt.Println("=================0") @@ -85,7 +85,7 @@ func PlayletOrderSettle() { } oldAmount := amount.LastMonthAmount amount.LastMonthAmount = utils.Float64ToStr(utils.StrToFloat64(amount.LastMonthAmount) + utils.StrToFloat64(v.Commission)) - update := masterAmountDb.MasterAmountUpdate(master.Id, amount) + update := masterAmountDb.MasterAmountUpdate(amount.Id, amount) if update == false { fmt.Println("=================7")