import { payNotify as payNotifyFn, refundNotify as refundNotifyFn } from '../utils/pay'; export const payNotify = { name: '微信支付回调', method: 'post', params: ['payId'], type: 'simple', fn: async (context, params, headers, req, body) => { const { payId } = params; return payNotifyFn(context, body, payId, headers); }, }; export const refundNotify = { name: '微信退款回调', method: 'post', params: ['refundId'], type: 'simple', fn: async (context, params, headers, req, body) => { const { refundId } = params; return refundNotifyFn(context, body, refundId, headers); }, };