q-koa 12.5.8 → 12.6.1
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
|
})
|
|
@@ -1867,9 +1865,9 @@ exports.getVisitTrend = async (ctx) => {
|
|
|
1867
1865
|
|
|
1868
1866
|
exports.getCommentInfo = async (ctx, _data) => {
|
|
1869
1867
|
const { app, appName } = getAppByCtx(ctx)
|
|
1870
|
-
|
|
1868
|
+
|
|
1871
1869
|
const appConfig = getConfig(app)
|
|
1872
|
-
|
|
1870
|
+
|
|
1873
1871
|
const { comment_id } = _data || ctx.request.body
|
|
1874
1872
|
|
|
1875
1873
|
if (!comment_id) throw new ServiceError('comment_id?')
|