pay.js 578 B

12345678910111213141516
  1. 'use strict';
  2. // 路由配置
  3. const path = require('path');
  4. const regPath = path.resolve('app', 'public', 'routerRegister');
  5. const routerRegister = require(regPath);
  6. const rkey = 'pay';
  7. const ckey = 'trade.pay';
  8. const keyZh = '支付接口';
  9. const routes = [
  10. { method: 'post', path: `${rkey}/order`, controller: `${ckey}.callBackPayOrder`, zh: `${keyZh}-支付回调函数` },
  11. { method: 'post', path: `${rkey}/toPayOrder`, controller: `${ckey}.toPayOrder`, zh: `${keyZh}-去支付订单` },
  12. ];
  13. module.exports = app => {
  14. routerRegister(app, routes, keyZh, rkey, ckey);
  15. };