| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace addons\YunfastPay\backend\controllers;
- use addons\YunfastPay\common\services\RefundService;
- /**
- * 退款订单控制器
- * @package addons\YunfastPay\backend\controllers
- */
- class RefundController extends BaseController
- {
- public $enableCsrfValidation = false;
- /**
- * @var RefundService
- */
- protected $service;
- public function init()
- {
- parent::init();
- $this->service = new RefundService(
- ['mall_id' => $this->mall_id]
- );
- }
- /**
- * 退款订单列表
- *
- * @return void
- */
- public function actionIndex()
- {
- if ($this->request->isAjax) {
- return $this->success(
- 'ok',
- $this->service->getPageList(
- array_merge(
- $this->request->post(),
- $this->request->get()
- )
- )
- );
- }
- return $this->render($this->action->id);
- }
- }
|