对Netty-Http-Client的支持

This commit is contained in:
jinyu
2015-09-10 21:28:50 +08:00
parent 8bef11f99b
commit bb18b98538
27 changed files with 889 additions and 212 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ base on netty.
}
};
// 当消息类型为文本(text)时回复「HelloWorld」, 否则回复调试消息
new WeixinServerBootstrap(token,appid, aesKey).addHandler(
new WeixinServerBootstrap(token, appid, aesKey).addHandler(
messageHandler, DebugMessageHandler.global).startup();
}
}
@@ -47,7 +47,7 @@ public class ScanEventMessage extends EventMessage {
}
public String getParameter() {
return eventKey.replace("qrscene_", "");
return eventKey.replaceFirst("qrscene_", "");
}
@Override