上传 战报校验优化
This commit is contained in:
parent
7e8ad9a4b7
commit
ce91c0a426
@ -196,6 +196,11 @@ func (this *Battle) CheckBattleReport(session comm.IUserSession, report *pb.Batt
|
|||||||
reply *pb.BattleCheckResults
|
reply *pb.BattleCheckResults
|
||||||
err error
|
err error
|
||||||
)
|
)
|
||||||
|
if report == nil {
|
||||||
|
iswin = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if this.options.OpenCheck {
|
if this.options.OpenCheck {
|
||||||
stime := time.Now()
|
stime := time.Now()
|
||||||
if reply, err = this.clients.CheckBattle(context.Background(), report); err != nil || !reply.Ischeck {
|
if reply, err = this.clients.CheckBattle(context.Background(), report); err != nil || !reply.Ischeck {
|
||||||
|
Loading…
Reference in New Issue
Block a user