瀏覽代碼

add reverse:for v3.6.5 绿色积分常量调整

tags/v3.6.5
huangjiajun 2 年之前
父節點
當前提交
67214824e9
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. +1
    -0
      md/block_star_chain.go
  2. +1
    -1
      rule/block_green_chain_settlement.go

+ 1
- 0
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 //区块星链-打赏倍数(商家)


+ 1
- 1
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


Loading…
取消
儲存