This commit is contained in:
laodaming 2023-07-26 17:48:51 +08:00
parent 06e4f1f96e
commit fcd20e7fc2

View File

@ -54,7 +54,7 @@ func (l *RenderNotifyLogic) RenderNotify(req *types.RenderNotifyReq) (resp *basi
signHex := h.Sum(nil) signHex := h.Sum(nil)
sign := hex.EncodeToString(signHex) sign := hex.EncodeToString(signHex)
if req.Sign != sign { if req.Sign != sign {
return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "invalid") return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "invalid sign")
} }
//遍历websocket链接把数据传进去 //遍历websocket链接把数据传进去
mapConnPool.Range(func(key, value any) bool { mapConnPool.Range(func(key, value any) bool {