1 2 3 4 5 6 7 8 9 10 | g.js var content = yield util.parseXMLAsync(data) console.log(content + "g.js:48" ) var message = util.formatMessage(content.xml) console.log(message + "g.js:51" ) this.weixin = message yield handler.call(this,next) wechat.reply.call(this) |
1 2 | app.js app.use(wechat(config.wechat , weixin.reply)) |
这里wechat页传入了wexin.reply 但是还是报错 handler is not defined
程序也能走到 this.weixin = message
message 是一个[object Object]