1
This commit is contained in:
parent
be3ec0ef5c
commit
17f5cfaf89
@ -40,6 +40,7 @@ const (
|
||||
MAIL_TAG1_CUSTOM = 10
|
||||
MAIL_TAG1_HERO = 100
|
||||
MAIL_TAG1_GOLD_BULLION = 101
|
||||
MAIL_TAG1_OLD_USER = 102
|
||||
)
|
||||
|
||||
const (
|
||||
@ -53,6 +54,8 @@ const (
|
||||
MAIL_TAG2_GOLD_BULLION_LOCK = 2
|
||||
MAIL_TAG2_GOLD_BULLION_UNLOCK = 3
|
||||
MAIL_TAG2_GOLD_BULLION_RETURN = 4
|
||||
|
||||
MAIL_TAG2_OLD_USER = 1
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -172,7 +172,9 @@ func (this *RechargeApi) internalBuy(c *gin.Context,
|
||||
i.Exp(i, e, nil)
|
||||
bnPrice = i.Mul(i, big.NewInt(srcPrice))
|
||||
}
|
||||
if bnPrice.Cmp(big.NewInt(0)) < 0 || bnPrice.Cmp(big.NewInt(q5.ToInt64(goodsMeta.GetPrice()))) < 0 {
|
||||
f5.GetSysLog().Info("recharge net_id:%d currency_name:%s decimal:%d srcPrice:%d bnPrice:%s",
|
||||
netId, currencyMeta.GetCurrencyName(), currencyMeta.GetCurrencyDecimal(), srcPrice, bnPrice.String());
|
||||
if bnPrice.Cmp(big.NewInt(0)) < 0 || bnPrice.Cmp(big.NewInt(srcPrice)) < 0 {
|
||||
f5.RspErr(c, 3, "server internal error")
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user