Commit ea3d2648 by lixiaozhong

如果action返回的是空,就不反馈ws的消息

parent 7412327c
...@@ -46,8 +46,10 @@ public class GeneralMessageHandler { ...@@ -46,8 +46,10 @@ public class GeneralMessageHandler {
am.setSenderChannel(ctx.channel()); am.setSenderChannel(ctx.channel());
am.setSenderClientId(senderClientId); am.setSenderClientId(senderClientId);
Object res = generalActionDispatcher.action(am); Object res = generalActionDispatcher.action(am);
if(res != null) {
channelSender.sendMsgLocal((NioSocketChannel)am.getSenderChannel(), res); channelSender.sendMsgLocal((NioSocketChannel)am.getSenderChannel(), res);
} }
}
public ArgumentBox getArgumentBox() { public ArgumentBox getArgumentBox() {
ArgumentBox beanBox = new DefaultArgumentBox(); ArgumentBox beanBox = new DefaultArgumentBox();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment