Commit 2843ed25 authored by 李尚科's avatar 李尚科

fix

parent 4ff36e11
Pipeline #13584 passed with stage
in 24 seconds
......@@ -31,8 +31,9 @@ class OrderController extends Controller {
async payOrder() {
const { ctx } = this;
const order_id = ctx.params.order_id;
const result = await ctx.service.credit.order.unifiedOrder('wexin', order_id);
const input_params = ctx.request.body;
const { method, order_id } = input_params;
const result = await ctx.service.credit.order.unifiedOrder(method, order_id);
ctx.success({ result });
}
......
......@@ -5,7 +5,7 @@ module.exports = app => {
router.get('/home', 'credit.order.getMyCredit');
router.get('/history/:type', 'credit.order.getRecord');
router.post('/order/pay/:order_id', 'credit.order.payOrder');
router.post('/order/pay', 'credit.order.payOrder');
router.get('/order/pay/:order_id', 'credit.order.payOrder');
router.post('/order/pay_notice', 'credit.order.payNotice');
router.get('/order/check_pay/:order_id', 'credit.order.checkPay');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment