掠夺报错修复

This commit is contained in:
meixiongfeng 2024-01-19 10:01:09 +08:00
parent d97e76de57
commit 1832ad09dd

View File

@ -95,7 +95,7 @@ func (this *modelLand) createPlunderLandData(uid string) (land *pb.DBPlunderLand
if users, err = this.module.ModuleUser.GetUsers(curUids); err == nil {
for _, v := range users {
uInfos = append(uInfos, comm.GetUserBaseInfo(v))
if len(land.Uinfo) > 20 {
if len(uInfos) > 20 {
break
}
}