diff --git a/modules/horoscope/configure.go b/modules/horoscope/configure.go index 07d24e141..f30c0eaf8 100644 --- a/modules/horoscope/configure.go +++ b/modules/horoscope/configure.go @@ -45,7 +45,7 @@ func (this *configureComp) getHoroscope(id int32) (result *cfg.GameHoroscopeData } //查询星座信息 -func (this *configureComp) getHoroscopebylv(grow, lv int32) (result *cfg.GameHoroscopeData, err error) { +func (this *configureComp) getHoroscopebylv(nodeid, lv int32) (result *cfg.GameHoroscopeData, err error) { var ( v interface{} ) @@ -53,13 +53,13 @@ func (this *configureComp) getHoroscopebylv(grow, lv int32) (result *cfg.GameHor this.module.Errorln(err) } else { for _, v := range v.(*cfg.GameHoroscope).GetDataMap() { - if v.GrowType == grow && v.Lv == lv { + if v.NodeId == nodeid && v.Lv == lv { result = v return } } } - err = fmt.Errorf("No found Horoscope grow:%d lv:%d", grow, lv) + err = fmt.Errorf("No found Horoscope nodeid:%d lv:%d", nodeid, lv) return }