q-koa 12.6.0 → 12.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1666,13 +1666,11 @@ exports.messagePush = async (ctx) => {
|
|
|
1666
1666
|
if (!app.service.weixin) throw new Error(`weixin可能没有service.js`)
|
|
1667
1667
|
if (event) {
|
|
1668
1668
|
if (app.service.weixin[event]) {
|
|
1669
|
-
await app.service.weixin[event]({
|
|
1670
|
-
app,
|
|
1671
|
-
result,
|
|
1672
|
-
})
|
|
1669
|
+
await app.service.weixin[event]({ ctx, app, result })
|
|
1673
1670
|
}
|
|
1674
1671
|
} else {
|
|
1675
1672
|
await app.service.weixin.handleUserMessage({
|
|
1673
|
+
ctx,
|
|
1676
1674
|
app,
|
|
1677
1675
|
result,
|
|
1678
1676
|
})
|