接口优化
This commit is contained in:
parent
e066dd9ed5
commit
786ce7772a
@ -2174,7 +2174,12 @@ func ReqChampshipPreRank(player *Player, req *msg.ReqChampshipPreRank) error {
|
||||
player.PushClientRes(&msg.ResChampshipPreRank{})
|
||||
return nil
|
||||
}
|
||||
m := res.Extra.(*msg.ResChampshipPreRank)
|
||||
m, ok := res.Extra.(*msg.ResChampshipPreRank)
|
||||
if !ok {
|
||||
player.PushClientRes(&msg.ResChampshipPreRank{})
|
||||
log.Error("type assert failed for ResChampshipPreRank")
|
||||
return nil
|
||||
}
|
||||
player.PushClientRes(m)
|
||||
return nil
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user