From c02bbc94c6f1a6e5b7ceadfcfa5c375be3df9350 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 4 Jul 2023 18:27:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E9=94=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/caravan/api_gotocity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/caravan/api_gotocity.go b/modules/caravan/api_gotocity.go index 0e2da9489..11787ad25 100644 --- a/modules/caravan/api_gotocity.go +++ b/modules/caravan/api_gotocity.go @@ -58,7 +58,7 @@ func (this *apiComp) GotoCity(session comm.IUserSession, req *pb.CaravanGotoCity } if bNewTask { // 到该城市随机一个新的任务 if newCity, e := this.module.configure.GetCaravanCity(req.City); e == nil { - if elist, err := this.configure.GetCaravanEventByGroup(newCity.Cityevent); err != nil { + if elist, err := this.module.configure.GetCaravanEventByGroup(newCity.Cityevent); err == nil { var randW []int32 for _, v := range elist { randW = append(randW, v.Eventweight)