This commit is contained in:
aozhiwei 2024-08-07 19:28:01 +08:00
parent ca1bf9d3f0
commit 6810b936e4

View File

@ -104,7 +104,7 @@ func (this *RechargeCurrencyTable) PostInit1() {
currencyMeta := val currencyMeta := val
Table.Recharge.Traverse(func(ele *Recharge) bool { Table.Recharge.Traverse(func(ele *Recharge) bool {
if int64(ele.GetPrice()) * currencyMeta.GetExchangeRate() != int64(ele.GetDiamond()) { if int64(ele.GetPrice()) * currencyMeta.GetExchangeRate() != int64(ele.GetDiamond()) {
panic(fmt.Sprintf("load metafile json decode error %s %s", "currency.json", netId)) panic(fmt.Sprintf("RechargeCurrency verifyerror net_id:%d id:%d", netId, ele.GetId()))
} }
return true return true
}) })