| 12345678910111213141516171819202122232425262728 |
- <?php
- namespace app\api\controller;
- use app\api\service\PaymentService;
- use app\exception\BaseException;
- use think\App;
- class Payment extends \app\BaseController
- {
- private $service;
- public function __construct(App $app)
- {
- $this->service = new PaymentService();
- parent::__construct($app);
- }
- /**
- * @return \think\response\Json
- * @throws BaseException
- */
- public function channels() {
- return $this->ok($this->service->channels());
- }
- }
|