cheak-wechat-signature-koa
v1.0.0
Published
A koa middleware: cheak-wechat-signature
Downloads
1
Readme
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