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