mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-04 09:05:59 +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
|
||||
}
|
||||
platformID, exists = context.Query(PlatformID)
|
||||
if !exists {
|
||||
if !exists || utils.StringToInt(platformID) == 0 {
|
||||
httpError(context, errs.ErrConnArgsErr)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user