q-koa 13.8.31 → 13.8.32

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.
@@ -1548,6 +1548,11 @@ exports.union_notify = async (ctx) => {
1548
1548
  exports.notify = async (ctx) => {
1549
1549
  const { app } = getAppByCtx(ctx)
1550
1550
  const result = ctx.request.xmlBody
1551
+ // TODO: 临时观察日志,上线后删除
1552
+ app.service.log.push({
1553
+ app,
1554
+ message: `微信支付回调notify报文: ${JSON.stringify(result || {})}`,
1555
+ })
1551
1556
  if (!result || !result.xml) return sendWxFail(ctx, 'INVALID_BODY')
1552
1557
 
1553
1558
  // ===== 微信 V2 回调验签 + mch_id 匹配 =====
@@ -1822,6 +1827,11 @@ const getRefundResultJson = async ({ req_info, app_key }) => {
1822
1827
  exports.refund_notify = async (ctx) => {
1823
1828
  const { app } = getAppByCtx(ctx)
1824
1829
  const result = ctx.request.xmlBody
1830
+ // TODO: 临时观察日志,上线后删除
1831
+ app.service.log.push({
1832
+ app,
1833
+ message: `微信退款回调refund_notify报文: ${JSON.stringify(result || {})}`,
1834
+ })
1825
1835
  if (!result || !result.xml) return sendWxFail(ctx, 'INVALID_BODY')
1826
1836
 
1827
1837
  const pay_config = ctx.params.sub || 'weixin_pay'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "13.8.31",
3
+ "version": "13.8.32",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {