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)