From 0c6f21e2113d00ac197be0377c3b1da1616ee909 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 17 Aug 2024 16:57:55 +0800 Subject: [PATCH] 1 --- bin/marketserver/config/currencys/13473/currency.json | 1 - server/marketserver/mtb/mtb.auto_gen.go | 10 ---------- server/marketserver/proto/mt.proto | 2 +- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/bin/marketserver/config/currencys/13473/currency.json b/bin/marketserver/config/currencys/13473/currency.json index 694fbc47..1987a1a4 100644 --- a/bin/marketserver/config/currencys/13473/currency.json +++ b/bin/marketserver/config/currencys/13473/currency.json @@ -1,5 +1,4 @@ { "currency_name": "TestToken", - "exchange_rate": 100, "currency_decimal": 6 } diff --git a/server/marketserver/mtb/mtb.auto_gen.go b/server/marketserver/mtb/mtb.auto_gen.go index 84f57689..cd7c8236 100644 --- a/server/marketserver/mtb/mtb.auto_gen.go +++ b/server/marketserver/mtb/mtb.auto_gen.go @@ -75,7 +75,6 @@ type Config struct { type RechargeCurrency struct { currency_name string - exchange_rate int64 currency_decimal int64 _flags1_ uint64 @@ -397,14 +396,6 @@ func (this *RechargeCurrency) HasCurrencyName() bool { 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 { return this.currency_decimal } @@ -571,7 +562,6 @@ func (this *Config) 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.exchange_rate, "exchange_rate", &this._flags1_, 2, kv) f5.ReadMetaTableField(&this.currency_decimal, "currency_decimal", &this._flags1_, 3, kv) } diff --git a/server/marketserver/proto/mt.proto b/server/marketserver/proto/mt.proto index 235a3165..544e740e 100644 --- a/server/marketserver/proto/mt.proto +++ b/server/marketserver/proto/mt.proto @@ -62,7 +62,7 @@ message Config message RechargeCurrency { optional string currency_name = 1; - optional int64 exchange_rate = 2; + //optional int64 exchange_rate = 2; optional int64 currency_decimal = 3; }