From 67214824e9e1e596c1f412d7ade9299cb257381b Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 8 Nov 2022 17:42:58 +0800 Subject: [PATCH] =?UTF-8?q?add=20reverse:for=20v3.6.5=20=E7=BB=BF=E8=89=B2?= =?UTF-8?q?=E7=A7=AF=E5=88=86=E5=B8=B8=E9=87=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- md/block_star_chain.go | 1 + rule/block_green_chain_settlement.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/md/block_star_chain.go b/md/block_star_chain.go index 2fb5403..ad7680a 100644 --- a/md/block_star_chain.go +++ b/md/block_star_chain.go @@ -77,6 +77,7 @@ const ( ) const DealUserCoinRequestIdPrefix = "%s:block_star_chain_deal_user_coin:%d:uid:%d" +const DealUserCoinForGreenRequestIdPrefix = "%s:block_star_chain_deal_user_coin_for_green:%d:uid:%d" const RewardBaseMultiple = 10 //区块星链-打赏倍数 const RewardBaseMultipleForMerchant = 2 //区块星链-打赏倍数(商家) diff --git a/rule/block_green_chain_settlement.go b/rule/block_green_chain_settlement.go index b51ddc9..0b5c15f 100644 --- a/rule/block_green_chain_settlement.go +++ b/rule/block_green_chain_settlement.go @@ -554,7 +554,7 @@ func DealUserCoinForGreen(session *xorm.Session, req md.DealUserCoinReq) (err er req.Amount = 0 } //1、分布式锁阻拦 - requestIdPrefix := fmt.Sprintf(md.DealUserCoinRequestIdPrefix, req.Mid, req.CoinId, req.Uid) + requestIdPrefix := fmt.Sprintf(md.DealUserCoinForGreenRequestIdPrefix, req.Mid, req.CoinId, req.Uid) cb, err := svc.HandleDistributedLock(req.Mid, strconv.Itoa(req.Uid), requestIdPrefix) if err != nil { return err