*/ class Application extends ServiceContainer { use ResponseCastable; /** * @var array */ protected $providers = [ Auth\ServiceProvider::class, OAuth\ServiceProvider::class, FansData\ServiceProvider::class, UserData\ServiceProvider::class, Video\ServiceProvider::class, VideoData\ServiceProvider::class, Im\ServiceProvider::class, Event\ServiceProvider::class, Base\ServiceProvider::class ]; /** * 初始化开放平台的基础接口 * @var array|\string[][] */ protected $defaultConfig = [ 'http' => [ 'base_uri' => 'https://open.douyin.com/', ], ]; /** * Handle dynamic calls. * * @param string $method * @param array $args * * @return mixed */ public function __call(string $method, array $args) { return $this->base->$method(...$args); } }