Payment.php 503 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\api\controller;
  3. use app\api\service\PaymentService;
  4. use app\exception\BaseException;
  5. use think\App;
  6. class Payment extends \app\BaseController
  7. {
  8. private $service;
  9. public function __construct(App $app)
  10. {
  11. $this->service = new PaymentService();
  12. parent::__construct($app);
  13. }
  14. /**
  15. * @return \think\response\Json
  16. * @throws BaseException
  17. */
  18. public function channels() {
  19. return $this->ok($this->service->channels());
  20. }
  21. }