|
|
@@ -253,8 +253,8 @@ func (t *MQProc) onNtf(funcode uint32, sessionId uint32, bytes *[]byte) {
|
|
|
// 发送信息
|
|
|
for _, item := range clients {
|
|
|
// c := clients[i]
|
|
|
- // sessionId, _ := strconv.Atoi(item.SessionID)
|
|
|
- // c := client.Clients[sessionId]
|
|
|
+ sessionId, _ := strconv.Atoi(item.SessionID)
|
|
|
+ c := client.Clients[sessionId]
|
|
|
// c.WriteTradeWsBuf(b)
|
|
|
|
|
|
// 分发给订阅者
|
|
|
@@ -263,7 +263,7 @@ func (t *MQProc) onNtf(funcode uint32, sessionId uint32, bytes *[]byte) {
|
|
|
global.M2A_Publish.Publish(publish.Topic_Trading, m)
|
|
|
|
|
|
// 给客户端通知
|
|
|
- // global.M2A_LOG.Info("[S->C]给客户端通知", zap.Any("ntf", funcode), zap.Any("clients", c.LoginID), zap.Any("SessionID", c.SessionID), zap.Any("len", len(b)))
|
|
|
+ global.M2A_LOG.Info("[S->C]给客户端通知", zap.Any("ntf", funcode), zap.Any("clients", c.LoginID), zap.Any("SessionID", c.SessionID), zap.Any("len", len(b)))
|
|
|
}
|
|
|
}
|
|
|
}
|