This commit is contained in:
wh_zcy 2023-06-29 18:04:03 +08:00
commit 21894ab024
2 changed files with 7 additions and 1 deletions

View File

@ -463,5 +463,10 @@ func (this *Battle) CheckBattleReport(session comm.IUserSession, report *pb.Batt
// this.ModuleBuried.SendToRtask(session, comm.Rtype157, int32(report.Info.Ptype), v) // this.ModuleBuried.SendToRtask(session, comm.Rtype157, int32(report.Info.Ptype), v)
go this.ModuleBuried.TriggerBuried(session.GetUserId(), comm.GetBuriedParam(comm.Rtype157, int32(report.Info.Ptype), v)) go this.ModuleBuried.TriggerBuried(session.GetUserId(), comm.GetBuriedParam(comm.Rtype157, int32(report.Info.Ptype), v))
} }
return nil, true
if (report.WinSide == 1 && report.Info.RedCompId == session.GetUserId()) || (report.WinSide == 2 && report.Info.BlueCompId == session.GetUserId()) {
return nil, true
} else {
return nil, false
}
} }

View File

@ -135,6 +135,7 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
} }
if int(shopData.RefreshnumgoldShop) < refresh { if int(shopData.RefreshnumgoldShop) < refresh {
isrefresh = true isrefresh = true
shopData.RefreshnumgoldShop++
} }
} }
if !isrefresh { if !isrefresh {