| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace addons\OperationCenter\backend\controllers;
- use addons\OperationCenter\common\services\CommissionService;
- /**
- * 分佣控制器
- *
- * Class CommissionController
- * @package addons\OperationCenter\backend\controllers
- */
- class CommissionController extends BaseController
- {
- /**
- * @var CommissionService
- */
- protected $service;
- public function init()
- {
- parent::init();
- $this->service = new CommissionService(['mall_id' => $this->mall_id]);
- }
- /**
- * 首页
- *
- * @return string
- */
- public function actionIndex()
- {
- if ($this->request->isAjax) {
- $params = $this->request->get();
- return $this->success('ok', $this->service->getPageList($params));
- }
- return $this->render($this->action->id);
- }
- }
|