From 121dc36216ee64fe2192b80b911365642a13c099 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Mon, 19 Dec 2022 16:41:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=B0=E4=BD=9C=E5=9B=BE?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/horoscope/configure.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }