Pay.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * Niushop商城系统 - 团队十年电商经验汇集巨献!
  4. * =========================================================
  5. * Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
  6. * ----------------------------------------------
  7. * 官方网址: https://www.niushop.com
  8. * =========================================================
  9. */
  10. namespace app\pay\controller;
  11. use app\Controller;
  12. use app\model\system\Pay as PayModel;
  13. /**
  14. * 支付控制器
  15. */
  16. class Pay extends Controller
  17. {
  18. /**
  19. * 支付异步回调
  20. */
  21. public function notify()
  22. {
  23. $param = input();
  24. event('PayNotify', []);
  25. }
  26. public function payReturn()
  27. {
  28. }
  29. /**
  30. * 付款码支付
  31. */
  32. public function authcodePay(){
  33. $param = input();
  34. $result = event('AuthcodePay', $param, true);
  35. if(empty($result)){
  36. $pay_model = new PayModel();
  37. return json($pay_model->error([], '付款码未通过校验!'));
  38. }
  39. return json($result);
  40. }
  41. }