1 Star 0 Fork 328

arden / wechat

forked from 夏悸 / wechat 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

##微信公共平台开发模式(JAVA) SDK

#####作者:____′↘夏悸 http://weibo.com/521090828

这里已经包含了源码和默认的一个实现。如果你想实现自己的个性话定制,只需把lib加人到你的web的lib目录。 加入classPath下面增加一个wechat.properties和log4j.properties的配置,在wechat.properties里面的MessageProcessingHandlerImpl是配置自定义的消息处理器的类路径(具体可以查看默认实现的源码) web.xml里面配置一个过滤器。

<filter>
    <filter-name>WeChatFilter</filter-name>
    <filter-class>com.gson.WeChatFilter</filter-class>
</filter>
<filter-mapping>
	<filter-name>WeChatFilter</filter-name>
	<url-pattern>/wechat/*</url-pattern>
</filter-mapping>

demo里面我默认配置是过滤(/wechat/*)类型的所有请求。星号表示在公众平台里面配置的Token。

####例如:

你的Token如果设置为abcdefg的话,那么你对应配置的URL就应该为 http://xxxxx.com/wechat/abcdefg

##演示账号:

image

  • 1、打开微信扫描上面二维码
  • 2、或者添加微信号: jeasyui

###功能介绍:

  • 回复 0 查看菜单;
  • 回复 1 查看社区最新动态;
  • 回复 2 本周推荐;
  • 回复 3 查看星座运势;
  • 回复 4 轻松一刻;
  • 回复 5 祝福墙;
  • 回复 6 快递查询;
  • 回复 @城市名称 查看天气(eg: @北京);
  • 回复 zip#地名 查询邮编区号(eg:zip#北京);
  • 回复 #内容 问题意见反馈;
Copyright (c) 2013 ____′↘夏悸 (http://www.jeasyuicn.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

微信公众平台开发模式(JAVA) SDK [Node.js版本http://git.oschina.net/gson/wechat-for-node-js] 强烈要求加星啊.... 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/arden-emily/wechat.git
git@gitee.com:arden-emily/wechat.git
arden-emily
wechat
wechat
master

搜索帮助