23 lines
714 B
JavaScript
23 lines
714 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.refundNotify = exports.payNotify = void 0;
|
|
const pay_1 = require("../utils/pay");
|
|
exports.payNotify = {
|
|
name: '微信支付回调',
|
|
method: 'post',
|
|
params: ['payId'],
|
|
fn: async (context, params, headers, req, body) => {
|
|
const { payId } = params;
|
|
return (0, pay_1.payNotify)(context, body, payId, headers);
|
|
},
|
|
};
|
|
exports.refundNotify = {
|
|
name: '微信退款回调',
|
|
method: 'post',
|
|
params: ['refundId'],
|
|
fn: async (context, params, headers, req, body) => {
|
|
const { refundId } = params;
|
|
return (0, pay_1.refundNotify)(context, body, refundId, headers);
|
|
},
|
|
};
|