|
|
@@ -138,6 +138,19 @@ func (t *MQProc) onNtf(funcode uint32, bytes *[]byte) {
|
|
|
c := client.Clients[i]
|
|
|
clients = append(clients, c)
|
|
|
}
|
|
|
+ case global.ListingOrderChangeNtf: // 挂牌委托变更广播通知
|
|
|
+ var p pb.ListingOrderChangeNtf
|
|
|
+ if err = proto.Unmarshal(*bytes, &p); err != nil {
|
|
|
+ global.M2A_LOG.Error("总线数据反序列化失败", zap.Error(err))
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ // 获取目标客户
|
|
|
+ clients = make([]*client.Client, 0)
|
|
|
+ for i := range client.Clients {
|
|
|
+ c := client.Clients[i]
|
|
|
+ clients = append(clients, c)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if err == nil && len(clients) > 0 {
|
|
|
@@ -166,7 +179,11 @@ func (t *MQProc) getRspProtobuf(msg *[]byte) (funcode uint32, sessionId uint32,
|
|
|
global.M2A_LOG.Info("收到总线消息", zap.Any("funcode", funcode), zap.Any("sessionId", sessionId), zap.Any("len", len(b)))
|
|
|
|
|
|
switch int(funcode) {
|
|
|
- case global.MoneyChangedNtf, global.OrderDealedNtf, global.MarketStatusChangeNtf: // 资金变化通知等
|
|
|
+ case global.MoneyChangedNtf,
|
|
|
+ global.OrderDealedNtf,
|
|
|
+ global.MarketStatusChangeNtf,
|
|
|
+ global.ListingOrderChangeNtf: // 资金变化通知等
|
|
|
+
|
|
|
bytes = &b
|
|
|
case global.ModifyPwdRsp: // 修改账户密码应答
|
|
|
var p pb.ModifyPwdRsp
|