service = new PaymentService(); parent::__construct($app); } /** * @return \think\response\Json * @throws BaseException */ public function channels() { return $this->ok($this->service->channels()); } }