PayLoader.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Niucloud-admin 企业快速开发的saas管理平台
  4. // +----------------------------------------------------------------------
  5. // | 官方网址:https://www.niucloud.com
  6. // +----------------------------------------------------------------------
  7. // | niucloud团队 版权所有 开源版本可自由商用
  8. // +----------------------------------------------------------------------
  9. // | Author: Niucloud Team
  10. // +----------------------------------------------------------------------
  11. namespace core\pay;
  12. use core\loader\Loader;
  13. /**
  14. * @see PayLoader
  15. * @package think\facade
  16. * @mixin Wechatpay
  17. * @method string|null upload(string $dir) 附件上传
  18. * @method array fetch(string $url, ?string $key) 抓取远程附件
  19. * @method mixed delete(string $file_name) 附件删除
  20. */
  21. class PayLoader extends Loader
  22. {
  23. /**
  24. * 空间名
  25. * @var string
  26. */
  27. protected $namespace = '\\core\\pay\\';
  28. protected $config_name = 'pay';
  29. /**
  30. * 默认驱动
  31. * @return mixed
  32. */
  33. protected function getDefault()
  34. {
  35. return config('pay.default');
  36. }
  37. }