Browse Source

update 绿色双链积分

master
DengBiao 9 months ago
parent
commit
5b62e6dc00
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      rule/green_coin_double_chain_settlement.go

+ 2
- 0
rule/green_coin_double_chain_settlement.go View File

@@ -74,6 +74,8 @@ func DealUserGreenCoinDoubleChainIntegral(Db *xorm.Engine, uid int, amount, ordI
parentAmountValue, _ := decimal.NewFromString(parentAmount)
if parentAmountValue.LessThan(amountValue) {
//TODO::上级绿色积分小于当前需要兑换积分金额
amountValue = parentAmountValue
amount = amountValue.String()
return
}
if userAmountValue.LessThan(amountValue) {


Loading…
Cancel
Save