This commit is contained in:
aozhiwei 2024-08-17 16:57:55 +08:00
parent b5104bdc2b
commit 0c6f21e211
3 changed files with 1 additions and 12 deletions

View File

@ -1,5 +1,4 @@
{ {
"currency_name": "TestToken", "currency_name": "TestToken",
"exchange_rate": 100,
"currency_decimal": 6 "currency_decimal": 6
} }

View File

@ -75,7 +75,6 @@ type Config struct {
type RechargeCurrency struct { type RechargeCurrency struct {
currency_name string currency_name string
exchange_rate int64
currency_decimal int64 currency_decimal int64
_flags1_ uint64 _flags1_ uint64
@ -397,14 +396,6 @@ func (this *RechargeCurrency) HasCurrencyName() bool {
return (this._flags1_ & (uint64(1) << 1)) > 0 return (this._flags1_ & (uint64(1) << 1)) > 0
} }
func (this *RechargeCurrency) GetExchangeRate() int64 {
return this.exchange_rate
}
func (this *RechargeCurrency) HasExchangeRate() bool {
return (this._flags1_ & (uint64(1) << 2)) > 0
}
func (this *RechargeCurrency) GetCurrencyDecimal() int64 { func (this *RechargeCurrency) GetCurrencyDecimal() int64 {
return this.currency_decimal return this.currency_decimal
} }
@ -571,7 +562,6 @@ func (this *Config) LoadFromKv(kv map[string]interface{}) {
func (this *RechargeCurrency) LoadFromKv(kv map[string]interface{}) { func (this *RechargeCurrency) LoadFromKv(kv map[string]interface{}) {
f5.ReadMetaTableField(&this.currency_name, "currency_name", &this._flags1_, 1, kv) f5.ReadMetaTableField(&this.currency_name, "currency_name", &this._flags1_, 1, kv)
f5.ReadMetaTableField(&this.exchange_rate, "exchange_rate", &this._flags1_, 2, kv)
f5.ReadMetaTableField(&this.currency_decimal, "currency_decimal", &this._flags1_, 3, kv) f5.ReadMetaTableField(&this.currency_decimal, "currency_decimal", &this._flags1_, 3, kv)
} }

View File

@ -62,7 +62,7 @@ message Config
message RechargeCurrency message RechargeCurrency
{ {
optional string currency_name = 1; optional string currency_name = 1;
optional int64 exchange_rate = 2; //optional int64 exchange_rate = 2;
optional int64 currency_decimal = 3; optional int64 currency_decimal = 3;
} }