Notify.php 569 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. *
  4. * @copyright ©2020 点小铺
  5. * @author hanj
  6. * @link: https://dyuit.com
  7. * Created by VSCode
  8. */
  9. namespace app\task\controller;
  10. use app\common\library\wechat\WxPay;
  11. /**
  12. * 支付成功异步通知接口
  13. * Class Notify
  14. * @package app\task\controller
  15. */
  16. class Notify
  17. {
  18. /**
  19. * 支付成功异步通知
  20. * @throws \think\Exception
  21. * @throws \think\exception\DbException
  22. */
  23. public function order()
  24. {
  25. // 微信支付组件:验证异步通知
  26. $WxPay = new WxPay(false);
  27. $WxPay->notify();
  28. }
  29. }