This commit is contained in:
aozhiwei 2024-08-17 19:29:20 +08:00
parent 7daa6700bc
commit 084cb8d1e4
4 changed files with 18 additions and 1 deletions

View File

@ -4,6 +4,7 @@
"diamond": 600,
"present_diamond": 66,
"price": 6,
"can_email_buy": 0,
"max_buy_times": 1
},
{
@ -11,13 +12,15 @@
"diamond": 6800,
"present_diamond": 1200,
"price": 68,
"max_buy_times": 68
"can_email_buy": 0,
"max_buy_times": 1
},
{
"id": 1003,
"diamond": 16800,
"present_diamond": 3200,
"price": 168,
"can_email_buy": 0,
"max_buy_times": 1
},
{
@ -25,6 +28,7 @@
"diamond": 26800,
"present_diamond": 6200,
"price": 268,
"can_email_buy": 0,
"max_buy_times": 1
},
{
@ -32,6 +36,7 @@
"diamond": 100,
"present_diamond": 0,
"price": 1,
"can_email_buy": 1,
"max_buy_times": 9999
}
]

View File

@ -49,6 +49,7 @@ func (ea *RechargeApi) RechargeList(c *gin.Context) {
tmpmap["present_diamond"] = tb.GetPresentDiamond()
tmpmap["price"] = tb.GetPrice()
tmpmap["max_buy_times"] = tb.GetMaxBuyTimes()
tmpmap["can_email_buy"] = tb.GetCanEmailBuy()
currencyList := []struct{
Name string `json:"name"`
Address string `json:"address"`

View File

@ -106,6 +106,7 @@ type Recharge struct {
present_diamond int32
price int32
max_buy_times int32
can_email_buy int32
_flags1_ uint64
_flags2_ uint64
@ -501,6 +502,14 @@ func (this *Recharge) HasMaxBuyTimes() bool {
return (this._flags1_ & (uint64(1) << 5)) > 0
}
func (this *Recharge) GetCanEmailBuy() int32 {
return this.can_email_buy
}
func (this *Recharge) HasCanEmailBuy() bool {
return (this._flags1_ & (uint64(1) << 6)) > 0
}
func (this *Web3ServiceCluster) GetUrl() string {
return this.url
}
@ -593,6 +602,7 @@ func (this *Recharge) LoadFromKv(kv map[string]interface{}) {
f5.ReadMetaTableField(&this.present_diamond, "present_diamond", &this._flags1_, 3, kv)
f5.ReadMetaTableField(&this.price, "price", &this._flags1_, 4, kv)
f5.ReadMetaTableField(&this.max_buy_times, "max_buy_times", &this._flags1_, 5, kv)
f5.ReadMetaTableField(&this.can_email_buy, "can_email_buy", &this._flags1_, 6, kv)
}
func (this *Web3ServiceCluster) LoadFromKv(kv map[string]interface{}) {

View File

@ -87,6 +87,7 @@ message Recharge
optional int32 present_diamond = 3;
optional int32 price = 4;
optional int32 max_buy_times = 5;
optional int32 can_email_buy = 6;
}
message Web3ServiceCluster