mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
fix: conn args validation
This commit is contained in:
parent
8b76ecd84e
commit
bd2d333a8d
@ -194,7 +194,7 @@ func (ws *WsServer) wsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
platformID, exists = context.Query(PlatformID)
|
||||
if !exists {
|
||||
if !exists || utils.StringToInt(platformID) == 0 {
|
||||
httpError(context, errs.ErrConnArgsErr)
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user