co-wechat icon indicating copy to clipboard operation
co-wechat copied to clipboard

Wechat for Koa

Results 9 co-wechat issues
Sort by recently updated
recently updated
newest added

```js 'use strict'; const wechat = require('co-wechat'); module.exports = app => { class HomeController extends app.Controller { } // 因为 Egg 需要用类的形式来组织,而 wechat 是通过 middleware 方法来生成中间件 HomeController.prototype.wechat = wechat({ token:...

作者你好,感谢提供这个封装库,这使得在做微信回复功能从原来数小时缩短至数分钟,由于我是刚学习nodejs不久,也是刚使用koa2,在我原有项目中使用该库里面本身的路由访问全部提示Invalid signature,请问作者如何解决啊

看了下[接收设备绑定解绑事件](https://iot.weixin.qq.com/wiki/document-2_2.html)的MsgType好像目前没有支持(是device_event)

[Template Literal](https://github.com/Drulac/template-literal) is fastest, smallest and simplest template engine, because it use JS's literal template feature. It's 55 times faster than EJS, and it also use less CPU and RAM...

[Template Literal](https://github.com/Drulac/template-literal) is fastest, smallest and simplest template engine, because it use JS's literal template feature. It's 55 times faster than EJS, and it also use less CPU and RAM...

全网发布时component_verify_ticket需要回复success,不然无法通过

if (ctx.request.body && typeof ctx.request.body === 'string') { xml = ctx.request.body; } else { // 取原始数据 xml = await getRawBody(ctx.req, { length: ctx.request.length, limit: '1mb', encoding: ctx.request.charset || 'utf-8' });...