common.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. /*
  3. * @Descripttion:
  4. * @version:
  5. * @Author: ewgof
  6. * @Date: 2022-04-08 15:37:47
  7. * @LastEditors: ewgof
  8. * @LastEditTime: 2022-04-16 10:57:59
  9. */
  10. return [
  11. // ----------------------- APP链接 ----------------------- //
  12. 'links' => [
  13. ],
  14. // ----------------------- 事件处理 ----------------------- //
  15. 'events' => [
  16. [
  17. 'event_name' => \common\enums\EventNameEnum::ORDER_DELIVERY,
  18. 'listeners' => [
  19. \addons\UnionPay\common\listeners\OrderDeliveryListener::class,
  20. ]
  21. ],
  22. [
  23. 'event_name' => \common\enums\EventNameEnum::ORDER_FINISH,
  24. 'listeners' => [
  25. \addons\UnionPay\common\listeners\OrderFinishListener::class,
  26. ]
  27. ],
  28. [
  29. 'event_name' => \common\enums\EventNameEnum::CLOUD_STOCK_FILL_ORDER_PAY,
  30. 'listeners' => [
  31. \addons\UnionPay\common\listeners\FillOrderPaidListener::class,
  32. ]
  33. ],
  34. [
  35. 'event_name' => \common\enums\EventNameEnum::COURSE_ORDER_PAY,
  36. 'listeners' => [
  37. \addons\UnionPay\common\listeners\CourseOrderPayRewardListener::class,
  38. ]
  39. ],
  40. [
  41. 'event_name' => \common\enums\EventNameEnum::RECHARGE_ORDER_PAY,
  42. 'listeners' => [
  43. \addons\UnionPay\common\listeners\RechargeOrderPaidListener::class,
  44. ]
  45. ],
  46. ], // ----------------------- 公共调用 ----------------------- //
  47. 'invoker' => [
  48. [
  49. 'invoker_id' => \common\enums\GlobalFuncEnum::PAYMENT_LIST,
  50. 'class' => 'addons\UnionPay\common\global_func\PaymentList',
  51. 'method' => 'getPaymentList'
  52. ],
  53. [
  54. 'invoker_id' => \common\enums\GlobalFuncEnum::PAYMENT_TYPE,
  55. 'class' => 'addons\UnionPay\common\global_func\PaymentList',
  56. 'method' => 'getPaymentType'
  57. ],
  58. [
  59. 'invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_GET_BANKCARD_INFO,
  60. 'class' => 'addons\UnionPay\common\global_func\GetBankInfo',
  61. 'method' => 'index'
  62. ],
  63. [
  64. 'invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_DELETE_BANKCARD,
  65. 'class' => 'addons\UnionPay\common\global_func\DelBankInfo',
  66. 'method' => 'handle'
  67. ],
  68. [
  69. 'invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_PAYMENT,
  70. 'class' => 'addons\UnionPay\common\global_func\Payment',
  71. 'method' => 'pay'
  72. ],
  73. // 退款
  74. [
  75. 'invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_ORDER_REFUND,
  76. 'class' => 'addons\UnionPay\common\global_func\Payment',
  77. 'method' => 'refund'
  78. ],
  79. ],
  80. ];