wechat-jsapi-cached

1.0.0 • Public • Published

#微信JS SDK服务器端Node.js实现

forked from stiekel/node-wechat-jsapi

增加了mongo cache

调用示例:

const wechatJsSign = require('wechat-jsapi-cached');

wechatJsSign(appid, appsecret, url, function(err, signtxt) { //put your code here. });

支持以下的测试链接:

使用之前,需要先将configManagerManager.js文件中的appIdsecret替换为你的应用的对应值。端口号也是在该文本中修改。

##运行

先进行扩展的安装:

npm install --registry=http://registry.npm.taobao.org/

再执行app.js

node app.js

配置完成,并启动起来后,可以直接访问如下链接来测试:

http://ip:port/index.html

##链接

/wechat-jsapi-cached/

    Package Sidebar

    Install

    npm i wechat-jsapi-cached

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    51.5 kB

    Total Files

    21

    Last publish

    Collaborators

    • taibushuang