1.0.0 • Published 8 years ago

cheak-wechat-signature-koa v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

cheak-wechat-signature-koa

cheak-wechat-signature-koa

Usage

token = 'yourtoken'
const checkSignature = require('cheak-wechat-signature-koa')(token)

...
...

router = new require('koa-router')()
router
.use(checkSignature)
.get( '/', async function (ctx){
    ctx.response.body = ctx.query.echostr
})

如果不是微信发来的请求,会返回''

License

The MIT license