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