每周优惠
This commit is contained in:
parent
120d83901a
commit
380a005143
@ -109,9 +109,8 @@ func GetWeeklyInfoAll() map[int]gamedata.WeeklyDiscountInfo {
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
var r map[int]interface{}
|
||||
var res = make(map[int]gamedata.WeeklyDiscountInfo)
|
||||
json.Unmarshal([]byte(gamedata.GetStringValue(data, "Value")), &r)
|
||||
r := data["Value"].([]interface{})
|
||||
res := make(map[int]gamedata.WeeklyDiscountInfo)
|
||||
for _, v := range r {
|
||||
v1 := v.(map[string]interface{})
|
||||
Id := GoUtil.Int(v1["Id"])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user