This commit is contained in:
liwei 2023-07-04 18:30:35 +08:00
commit eab16c8518
13 changed files with 367 additions and 338 deletions

View File

@ -33,15 +33,14 @@
"citytype": 1,
"citytypenum": 2,
"special": [
"1",
"2",
"4",
"6"
"21000001",
"21000002",
"21000003",
"21000004"
],
"specialnum": 500,
"exspecial": [
"21000002",
"21000001"
"21000009"
],
"exspecialnum": 1500,
"Orspecial": 1000,
@ -51,9 +50,7 @@
"sptalk": 11003,
"buytalk": 11004,
"cityeventpro": 50000,
"cityevent": [
1
]
"cityevent": 1
},
{
"id": 102,
@ -89,15 +86,14 @@
"citytype": 1,
"citytypenum": 3,
"special": [
"3",
"4",
"5",
"6"
"21000001",
"21000002",
"21000003",
"21000007"
],
"specialnum": 500,
"exspecial": [
"1",
"2"
"21000004"
],
"exspecialnum": 1600,
"Orspecial": 1000,
@ -107,9 +103,7 @@
"sptalk": 11003,
"buytalk": 11004,
"cityeventpro": 100000,
"cityevent": [
1
]
"cityevent": 1
},
{
"id": 103,
@ -146,15 +140,14 @@
"citytype": 1,
"citytypenum": 4,
"special": [
"2",
"3",
"4",
"6"
"21000001",
"21000002",
"21000003",
"21000004"
],
"specialnum": 500,
"exspecial": [
"1",
"5"
"21000005"
],
"exspecialnum": 1700,
"Orspecial": 1000,
@ -164,9 +157,7 @@
"sptalk": 11003,
"buytalk": 11004,
"cityeventpro": 50000,
"cityevent": [
1
]
"cityevent": 1
},
{
"id": 104,
@ -203,15 +194,14 @@
"citytype": 1,
"citytypenum": 3,
"special": [
"1",
"2",
"4",
"5"
"21000001",
"21000002",
"21000003",
"21000004"
],
"specialnum": 500,
"exspecial": [
"3",
"6"
"21000006"
],
"exspecialnum": 1800,
"Orspecial": 1000,
@ -221,9 +211,7 @@
"sptalk": 11003,
"buytalk": 11004,
"cityeventpro": 100000,
"cityevent": [
1
]
"cityevent": 1
},
{
"id": 105,
@ -259,15 +247,14 @@
"citytype": 1,
"citytypenum": 4,
"special": [
"1",
"3",
"4",
"6"
"21000001",
"21000002",
"21000003",
"21000009"
],
"specialnum": 500,
"exspecial": [
"2",
"5"
"21000007"
],
"exspecialnum": 1900,
"Orspecial": 1000,
@ -277,8 +264,6 @@
"sptalk": 11003,
"buytalk": 11004,
"cityeventpro": 50000,
"cityevent": [
1
]
"cityevent": 1
}
]

View File

@ -25,7 +25,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000002",
@ -53,7 +54,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000003",
@ -81,7 +83,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000004",
@ -109,7 +112,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000005",
@ -137,7 +141,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000006",
@ -165,7 +170,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000007",
@ -193,7 +199,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000008",
@ -221,7 +228,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000009",
@ -249,7 +257,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000010",
@ -277,7 +286,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000011",
@ -305,7 +315,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000012",
@ -333,7 +344,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000013",
@ -361,7 +373,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000014",
@ -389,7 +402,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000015",
@ -417,7 +431,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000016",
@ -445,7 +460,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000017",
@ -473,7 +489,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000018",
@ -501,7 +518,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000019",
@ -529,7 +547,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000020",
@ -557,7 +576,8 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
},
{
"itemid": "21000021",
@ -585,6 +605,7 @@
],
"FluctuationRange": 500,
"pricemin": 200,
"pricemax": 3000
"pricemax": 3000,
"goodsnum": 80
}
]

View File

@ -1472,7 +1472,7 @@
"type": 1,
"ip": 6,
"sd": 1,
"handbook": 1,
"handbook": -1,
"prefab": "24001",
"rotation": "0|0|0",
"revolve": 0,

View File

@ -12685,7 +12685,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_mcs",
"intr": {
"key": "item_item_intr_356",
@ -12701,7 +12701,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -12716,7 +12716,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "wp_icon_jjcq",
"intr": {
"key": "item_item_intr_357",
@ -12732,7 +12732,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -12747,7 +12747,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_358",
@ -12763,7 +12763,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -12778,7 +12778,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_359",
@ -12794,7 +12794,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -12809,7 +12809,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_360",
@ -12825,7 +12825,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -12840,7 +12840,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_361",
@ -12856,7 +12856,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -12871,7 +12871,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_362",
@ -12887,7 +12887,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -12902,7 +12902,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_363",
@ -12918,7 +12918,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -12933,7 +12933,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_364",
@ -12949,7 +12949,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -12964,7 +12964,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_365",
@ -12980,7 +12980,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -12995,7 +12995,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_366",
@ -13011,7 +13011,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -13026,7 +13026,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_367",
@ -13042,7 +13042,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -13057,7 +13057,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_368",
@ -13073,7 +13073,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -13088,7 +13088,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_369",
@ -13104,7 +13104,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -13119,7 +13119,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_370",
@ -13135,7 +13135,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -13150,7 +13150,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_371",
@ -13166,7 +13166,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -13181,7 +13181,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_372",
@ -13197,7 +13197,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -13212,7 +13212,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_373",
@ -13228,7 +13228,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -13243,7 +13243,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_374",
@ -13259,7 +13259,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -13274,7 +13274,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_375",
@ -13290,7 +13290,7 @@
},
"usetype": 2,
"color": 4,
"bagtype": 1,
"bagtype": 0,
"index": 1,
"special_type": 0,
"time": 0,
@ -13305,7 +13305,7 @@
"decompose_get": [],
"access": [],
"use_skip": 11001,
"upper_limit": 80,
"upper_limit": 999,
"img": "icon_st03",
"intr": {
"key": "item_item_intr_376",

File diff suppressed because it is too large Load Diff

View File

@ -178,10 +178,9 @@ func (this *apiComp) BuyOrSell(session comm.IUserSession, req *pb.CaravanBuyOrSe
caravan.Items[k].Price = totla / caravan.Items[k].Count
// 同步更新该城市的 出售货物信息
cityInfo.Count[k] += v
itemConf, err := this.module.configure.GetItemConfigureData(k)
if err == nil {
//if itemConf, err := this.configure.GetCaravanGoods(k); err == nil { // 更新商店库存
if cityInfo.Count[k] > itemConf.UpperLimit {
if itemConf, err := this.configure.GetCaravanGoods(k); err == nil { // 更新商店库存
if cityInfo.Count[k] > itemConf.Goodsnum {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_TrollBuyMax, // 商品数量不足
Title: pb.ErrorCode_TrollBuyMax.ToString(),

View File

@ -58,8 +58,14 @@ func (this *apiComp) GotoCity(session comm.IUserSession, req *pb.CaravanGotoCity
}
if bNewTask { // 到该城市随机一个新的任务
if newCity, e := this.module.configure.GetCaravanCity(req.City); e == nil {
ipos := comm.GetRandW(newCity.Cityevent)
list.Eventid = newCity.Cityevent[ipos] // 新的任务
if elist, err := this.module.configure.GetCaravanEventByGroup(newCity.Cityevent); err == nil {
var randW []int32
for _, v := range elist {
randW = append(randW, v.Eventweight)
}
list.Eventid = elist[comm.GetRandW(randW)].Id
}
// 新的任务
// list.Tasktime = configure.Now().Unix()
// if event := this.module.configure.GetCaravanEventById(list.Eventid); event != nil {
// list.Task = event.Worldtask // 对应世界任务组

View File

@ -7,6 +7,7 @@ import (
"go_dreamfactory/modules"
"go_dreamfactory/sys/configure"
cfg "go_dreamfactory/sys/configure/structs"
"sync"
)
var moduleName = "caravan"
@ -24,6 +25,8 @@ const (
type configureComp struct {
modules.MCompConfigure
module *Caravan
lock sync.RWMutex
event map[int32][]*cfg.GameCaravanEventData
}
//组件初始化接口
@ -36,6 +39,19 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
this.LoadConfigure(game_caravan_thing, cfg.NewGameCaravanThing)
this.LoadConfigure(game_caravan_event, cfg.NewGameCaravanEvent)
this.LoadConfigure(game_caravan_rank, cfg.NewGameCaravanRank)
configure.RegisterConfigure(game_caravan_event, cfg.NewGameCaravanRank, func() {
this.lock.Lock()
if v, err := this.GetConfigure(game_caravan_event); err != nil {
this.module.Errorf("err:%v", err)
return
} else {
this.event = make(map[int32][]*cfg.GameCaravanEventData, 0)
for _, v := range v.(*cfg.GameCaravanEvent).GetDataList() {
this.event[v.Eventgroup] = append(this.event[v.Eventgroup], v)
}
}
this.lock.Unlock()
})
return
}
@ -139,20 +155,14 @@ func (this *configureComp) GetAllCaravanItem() (data []*cfg.GameCaravanThingData
}
// 获取随机事件
func (this *configureComp) GetCaravanEventById(id int32) (data *cfg.GameCaravanEventData, err error) {
func (this *configureComp) GetCaravanEventByGroup(eventgroup int32) (data []*cfg.GameCaravanEventData, err error) {
var (
v interface{}
ok bool
)
if v, err = this.GetConfigure(game_caravan_event); err == nil {
if configure, ok := v.(*cfg.GameCaravanEvent); ok {
if data = configure.Get(id); data == nil {
err = comm.NewNotFoundConfErr(moduleName, game_caravan_event, id)
this.module.Errorln(err)
if data, ok = this.event[eventgroup]; !ok {
err = comm.NewNotFoundConfErr(moduleName, game_caravan_event, eventgroup)
}
return
}
}
err = comm.NewNotFoundConfErr(moduleName, game_caravan_event, id)
return
}
@ -214,3 +224,19 @@ func (this *configureComp) GetCaravanRank(index int32) (reward *cfg.GameCaravanR
err = comm.NewNotFoundConfErr(moduleName, game_caravan_rank, index)
return
}
func (this *configureComp) GetCaravanEventById(id int32) (data *cfg.GameCaravanEventData, err error) {
var (
v interface{}
)
if v, err = this.GetConfigure(game_caravan_event); err == nil {
if configure, ok := v.(*cfg.GameCaravanEvent); ok {
if data = configure.Get(id); data == nil {
err = comm.NewNotFoundConfErr(moduleName, game_caravan_event, id)
this.module.Errorln(err)
}
return
}
}
err = comm.NewNotFoundConfErr(moduleName, game_caravan_event, id)
return
}

View File

@ -224,6 +224,7 @@ func (this *Caravan) refreshCaravanCityInfo(uid string, caravan *pb.DBCaravan) {
// 校验随机事件是否超时
func (this *Caravan) CheckCaravanTask(session comm.IUserSession, data *pb.DBCaravan) (bTimeOut bool) {
if data.Eventid != 0 {
if list, err := this.configure.GetCaravanEventById(data.Eventid); err == nil {
// 校验任务是否超时

View File

@ -149,12 +149,14 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (errdata *pb.Er
// 发所有道具
item := this.configure.GetAllItemConfigure()
for _, v := range item {
if v.Bagtype != 0 {
res = append(res, &cfg.Gameatn{
A: "item",
T: v.Id,
N: 100,
})
}
}
errdata = this.DispenseRes(session, res, true)
if errdata != nil {
this.Errorf("资源发放失败,%v", errdata)

View File

@ -469,7 +469,7 @@ func (this *ModelHero) AddCardExp(session comm.IUserSession, hero *pb.DBHero, ex
maxLv = this.module.configure.GetHeroMaxLv(hero.Star)
// 校验玩家等级
if _user := this.module.ModuleUser.GetUser(session.GetUserId()); _user != nil {
if expConf := this.module.configure.GetPlayerlvConf(_user.Lv); expConf == nil {
if expConf := this.module.configure.GetPlayerlvConf(_user.Lv); expConf != nil {
if maxLv > expConf.HeroLv {
maxLv = expConf.HeroLv // 英雄最大等级限制
}

View File

@ -34,7 +34,7 @@ type GameCaravanCityData struct {
Sptalk int32
Buytalk int32
Cityeventpro int32
Cityevent []int32
Cityevent int32
}
const TypeId_GameCaravanCityData = 145138895
@ -132,20 +132,7 @@ func (_v *GameCaravanCityData)Deserialize(_buf map[string]interface{}) (err erro
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["sptalk"].(float64); !_ok_ { err = errors.New("sptalk error"); return }; _v.Sptalk = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buytalk"].(float64); !_ok_ { err = errors.New("buytalk error"); return }; _v.Buytalk = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["cityeventpro"].(float64); !_ok_ { err = errors.New("cityeventpro error"); return }; _v.Cityeventpro = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["cityevent"].([]interface{}); !_ok_ { err = errors.New("cityevent error"); return }
_v.Cityevent = make([]int32, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
_v.Cityevent = append(_v.Cityevent, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["cityevent"].(float64); !_ok_ { err = errors.New("cityevent error"); return }; _v.Cityevent = int32(_tempNum_) }
return
}

View File

@ -21,6 +21,7 @@ type GameCaravanThingData struct {
FluctuationRange int32
Pricemin int32
Pricemax int32
Goodsnum int32
}
const TypeId_GameCaravanThingData = 638455774
@ -105,6 +106,7 @@ func (_v *GameCaravanThingData)Deserialize(_buf map[string]interface{}) (err err
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["FluctuationRange"].(float64); !_ok_ { err = errors.New("FluctuationRange error"); return }; _v.FluctuationRange = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["pricemin"].(float64); !_ok_ { err = errors.New("pricemin error"); return }; _v.Pricemin = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["pricemax"].(float64); !_ok_ { err = errors.New("pricemax error"); return }; _v.Pricemax = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["goodsnum"].(float64); !_ok_ { err = errors.New("goodsnum error"); return }; _v.Goodsnum = int32(_tempNum_) }
return
}