MessageOrderPaySuccess.php 866 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Niushop商城系统 - 团队十年电商经验汇集巨献!
  4. * =========================================================
  5. * Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
  6. * ----------------------------------------------
  7. * 官方网址: https://www.niushop.com
  8. * =========================================================
  9. */
  10. namespace app\event;
  11. use app\model\order\OrderMessage;
  12. /**
  13. * 订单创建发送消息
  14. */
  15. class MessageOrderPaySuccess
  16. {
  17. /**
  18. * @param $param
  19. * @return array|mixed|void
  20. */
  21. public function handle($param)
  22. {
  23. trace($param, '订单创建发送消息event'.json_encode($param));
  24. //发送订单消息
  25. if ($param["keywords"] == "ORDER_PAY") {
  26. $model = new OrderMessage();
  27. $model->messagePaySuccess($param);
  28. }
  29. }
  30. }