1 Star 0 Fork 50

司凃燃 / wechat For Node.js

forked from 夏悸 / wechat For Node.js 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
app.js 665 Bytes
一键复制 编辑 原始数据 按行查看 历史
夏悸 提交于 2013-08-04 12:14 . 修改描述
/*
* 微信公众平台 Node.js SDK 1.0.0
* (c) 2012-2013 ____′↘夏悸 <wmails@126.cn>, MIT Licensed
* http://www.jeasyuicn.com/wechat
*/
var http = require('http');
var wechat = require('./wechat');
http.createServer(function (req, res) {
wechat.process(req, res);
}).listen(3000, "127.0.0.1");
/*
实现自定义消息处理器
var myMsgHandler = require('./myMsgHandler');
http.createServer(function (req, res) {
wechat.process(req, res,myMsgHandler);
}).listen(3000, "127.0.0.1");
*/
/*
实现自定义请求过滤类型
http.createServer(function (req, res) {
wechat.process(req, res,null,'/mywechat/');
}).listen(3000, "127.0.0.1");
*/
1
https://gitee.com/acshop/wechat-for-node-js.git
git@gitee.com:acshop/wechat-for-node-js.git
acshop
wechat-for-node-js
wechat For Node.js
master

搜索帮助