diff --git a/bin/json/game_recharge.json b/bin/json/game_recharge.json index 1d7a992c9..358a14909 100644 --- a/bin/json/game_recharge.json +++ b/bin/json/game_recharge.json @@ -4,7 +4,7 @@ "editionid": "debug", "recharge_type": 1, "monetaryunit": "¥", - "amount": "6", + "amount": 6, "vipexp": [ { "a": "attr", @@ -38,7 +38,7 @@ "editionid": "debug", "recharge_type": 1, "monetaryunit": "¥", - "amount": "30", + "amount": 30, "vipexp": [ { "a": "attr", @@ -72,7 +72,7 @@ "editionid": "debug", "recharge_type": 1, "monetaryunit": "¥", - "amount": "68", + "amount": 68, "vipexp": [ { "a": "attr", @@ -106,7 +106,7 @@ "editionid": "debug", "recharge_type": 1, "monetaryunit": "¥", - "amount": "98", + "amount": 98, "vipexp": [ { "a": "attr", @@ -140,7 +140,7 @@ "editionid": "debug", "recharge_type": 1, "monetaryunit": "¥", - "amount": "128", + "amount": 128, "vipexp": [ { "a": "attr", @@ -174,7 +174,7 @@ "editionid": "debug", "recharge_type": 1, "monetaryunit": "¥", - "amount": "198", + "amount": 198, "vipexp": [ { "a": "attr", @@ -208,7 +208,7 @@ "editionid": "debug", "recharge_type": 1, "monetaryunit": "¥", - "amount": "328", + "amount": 328, "vipexp": [ { "a": "attr", @@ -242,7 +242,7 @@ "editionid": "debug", "recharge_type": 1, "monetaryunit": "¥", - "amount": "648", + "amount": 648, "vipexp": [ { "a": "attr", @@ -276,7 +276,7 @@ "editionid": "debug", "recharge_type": 2, "monetaryunit": "¥", - "amount": "6", + "amount": 6, "vipexp": [ { "a": "attr", @@ -310,7 +310,7 @@ "editionid": "debug", "recharge_type": 2, "monetaryunit": "¥", - "amount": "6", + "amount": 6, "vipexp": [ { "a": "attr", @@ -344,7 +344,7 @@ "editionid": "debug", "recharge_type": 2, "monetaryunit": "¥", - "amount": "6", + "amount": 6, "vipexp": [ { "a": "attr", @@ -378,7 +378,7 @@ "editionid": "debug", "recharge_type": 2, "monetaryunit": "¥", - "amount": "30", + "amount": 30, "vipexp": [ { "a": "attr", @@ -412,7 +412,7 @@ "editionid": "debug", "recharge_type": 2, "monetaryunit": "¥", - "amount": "30", + "amount": 30, "vipexp": [ { "a": "attr", @@ -446,7 +446,7 @@ "editionid": "debug", "recharge_type": 2, "monetaryunit": "¥", - "amount": "30", + "amount": 30, "vipexp": [ { "a": "attr", @@ -480,7 +480,7 @@ "editionid": "debug", "recharge_type": 2, "monetaryunit": "¥", - "amount": "30", + "amount": 30, "vipexp": [ { "a": "attr", @@ -514,7 +514,7 @@ "editionid": "debug", "recharge_type": 2, "monetaryunit": "¥", - "amount": "30", + "amount": 30, "vipexp": [ { "a": "attr", @@ -548,7 +548,7 @@ "editionid": "debug", "recharge_type": 2, "monetaryunit": "¥", - "amount": "128", + "amount": 128, "vipexp": [ { "a": "attr", @@ -582,7 +582,7 @@ "editionid": "debug", "recharge_type": 2, "monetaryunit": "¥", - "amount": "198", + "amount": 198, "vipexp": [ { "a": "attr", @@ -616,7 +616,7 @@ "editionid": "debug", "recharge_type": 2, "monetaryunit": "¥", - "amount": "328", + "amount": 328, "vipexp": [ { "a": "attr", @@ -650,7 +650,7 @@ "editionid": "debug", "recharge_type": 3, "monetaryunit": "¥", - "amount": "30", + "amount": 30, "vipexp": [ { "a": "attr", @@ -673,7 +673,7 @@ "editionid": "debug", "recharge_type": 3, "monetaryunit": "¥", - "amount": "98", + "amount": 98, "vipexp": [ { "a": "attr", diff --git a/sys/configure/structs/Game.RechargeData.go b/sys/configure/structs/Game.RechargeData.go index 94bc08426..064d59e85 100644 --- a/sys/configure/structs/Game.RechargeData.go +++ b/sys/configure/structs/Game.RechargeData.go @@ -15,7 +15,7 @@ type GameRechargeData struct { Editionid string RechargeType int32 Monetaryunit string - Amount string + Amount int32 Vipexp []*Gameatn DiamondNumDouble []*Gameatn Channel string @@ -34,7 +34,7 @@ func (_v *GameRechargeData)Deserialize(_buf map[string]interface{}) (err error) { var _ok_ bool; if _v.Editionid, _ok_ = _buf["editionid"].(string); !_ok_ { err = errors.New("editionid error"); return } } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["recharge_type"].(float64); !_ok_ { err = errors.New("recharge_type error"); return }; _v.RechargeType = int32(_tempNum_) } { var _ok_ bool; if _v.Monetaryunit, _ok_ = _buf["monetaryunit"].(string); !_ok_ { err = errors.New("monetaryunit error"); return } } - { var _ok_ bool; if _v.Amount, _ok_ = _buf["amount"].(string); !_ok_ { err = errors.New("amount error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["amount"].(float64); !_ok_ { err = errors.New("amount error"); return }; _v.Amount = int32(_tempNum_) } { var _arr_ []interface{} var _ok_ bool