Pay.php 659 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\core\logic;
  3. use app\core\util\MiniProgramService;
  4. use think\Request;
  5. /**
  6. * Created by PhpStorm.
  7. * User: xurongyao <763569752@qq.com>
  8. * Date: 2019/4/8 5:48 PM
  9. */
  10. class Pay
  11. {
  12. public static function notify(){
  13. $request=Request::instance();
  14. switch (strtolower($request->param('notify_type','wenxin'))){
  15. case 'wenxin':
  16. break;
  17. case 'routine': //小程序支付回调
  18. MiniProgramService::handleNotify();
  19. break;
  20. case 'alipay':
  21. break;
  22. default:
  23. echo 121;
  24. break;
  25. }
  26. }
  27. }