Routine.php 520 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\routine\controller;
  3. use behavior\wechat\PaymentBehavior;
  4. use service\HookService;
  5. use service\RoutineNotify;
  6. /**
  7. * 小程序支付回调
  8. * Class Routine
  9. * @package app\routine\controller
  10. */
  11. class Routine
  12. {
  13. /**
  14. * 支付 异步回调
  15. */
  16. public function notify()
  17. {
  18. $result = RoutineNotify::notify();
  19. if($result) HookService::listen('wechat_pay_success_'.strtolower($result['attach']),$result['out_trade_no'],$result,true,PaymentBehavior::class);
  20. }
  21. }