报错修改

This commit is contained in:
meixiongfeng 2023-07-04 18:27:51 +08:00
parent 86405a4199
commit c02bbc94c6

View File

@ -58,7 +58,7 @@ func (this *apiComp) GotoCity(session comm.IUserSession, req *pb.CaravanGotoCity
} }
if bNewTask { // 到该城市随机一个新的任务 if bNewTask { // 到该城市随机一个新的任务
if newCity, e := this.module.configure.GetCaravanCity(req.City); e == nil { 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 var randW []int32
for _, v := range elist { for _, v := range elist {
randW = append(randW, v.Eventweight) randW = append(randW, v.Eventweight)