Commit 6bdd5ce6 by 杨树贤

添加字段

parent f9cdd0fa
Showing with 3 additions and 0 deletions
...@@ -91,6 +91,7 @@ type LySku struct { ...@@ -91,6 +91,7 @@ type LySku struct {
Coo string `json:"coo"` Coo string `json:"coo"`
Tariff float64 `json:"tariff"` Tariff float64 `json:"tariff"`
TariffFormat string `json:"tariff_format"` TariffFormat string `json:"tariff_format"`
AbilityLevel int `json:"ability_level"`
} }
type DiscountRatio struct { type DiscountRatio struct {
...@@ -283,6 +284,8 @@ func InitSkuData(sku string) (data LySku) { ...@@ -283,6 +284,8 @@ func InitSkuData(sku string) (data LySku) {
data.Coo = gjson.Get(sku, "coo").String() data.Coo = gjson.Get(sku, "coo").String()
data.AbilityLevel = int(gjson.Get(sku,"ability_level").Int())
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment