u
This commit is contained in:
parent
b42e5e1000
commit
fd3682b708
@ -36,7 +36,7 @@ base on netty.
|
|||||||
|
|
||||||
public class MessageServerStartup{
|
public class MessageServerStartup{
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
new WeixinServerBootstrap("appid","token","aesKey").addHandler(
|
new WeixinServerBootstrap("token","appid","aesKey").addHandler(
|
||||||
DebugMessageHandler.global).startup();
|
DebugMessageHandler.global).startup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -54,7 +54,7 @@ base on netty.
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
// 当消息类型为文本(text)时回复「HelloWorld」, 否则回复调试消息
|
// 当消息类型为文本(text)时回复「HelloWorld」, 否则回复调试消息
|
||||||
new WeixinServerBootstrap(appid, token, aesKey).addHandler(
|
new WeixinServerBootstrap(token,appid, aesKey).addHandler(
|
||||||
messageHandler, DebugMessageHandler.global).startup();
|
messageHandler, DebugMessageHandler.global).startup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user