This commit is contained in:
jinyu 2015-08-28 19:46:11 +08:00
parent b42e5e1000
commit fd3682b708

View File

@ -36,7 +36,7 @@ base on netty.
public class MessageServerStartup{
public static void main(String[] args) {
new WeixinServerBootstrap("appid","token","aesKey").addHandler(
new WeixinServerBootstrap("token","appid","aesKey").addHandler(
DebugMessageHandler.global).startup();
}
}
@ -54,7 +54,7 @@ base on netty.
}
};
// 当消息类型为文本(text)时回复「HelloWorld」, 否则回复调试消息
new WeixinServerBootstrap(appid, token, aesKey).addHandler(
new WeixinServerBootstrap(token,appid, aesKey).addHandler(
messageHandler, DebugMessageHandler.global).startup();
}
}