This commit is contained in:
liwei1dao 2024-01-30 14:03:29 +08:00
commit 6115e69bc8

View File

@ -46,6 +46,13 @@ func (this *apiComp) GetList(session comm.IUserSession, req *pb.PlunderGetListRe
list.Landid = land.Id
update["landid"] = land.Id
} else {
if land, err = this.module.modelLand.getPlunderLandData(list.Landid); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Message: err.Error(),
}
return
}
var uids []string
etime := this.module.modelLand.GetEndTime()
// 清理岛数据
@ -74,13 +81,6 @@ func (this *apiComp) GetList(session comm.IUserSession, req *pb.PlunderGetListRe
update["etime"] = land.Etime
}
if land, err = this.module.modelLand.getPlunderLandData(list.Landid); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Message: err.Error(),
}
return
}
}
if len(list.Source) == 0 {
list.Source, err = this.module.modelPlunder.refreshGoodsInfo()