| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace app\modules\client\controllers\v1\team_grades;
- use app\modules\client\controllers\BaseController;
- use app\modules\client\models\v1\team_grades\TeamUserPoolForm;
- class TeamUserPoolController extends BaseController
- {
- //业绩分红中心
- public function actionPoolIndex(){
- $form = new TeamUserPoolForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user_id = get_user_id();
- return $this->asJson($form->poolIndex());
- }
- //分红记录
- public function actionPoolList(){
- $form = new TeamUserPoolForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user_id = get_user_id();
- return $this->asJson($form->poolList());
- }
- //业绩订单分红
- public function actionOrderPoolList(){
- $form = new TeamUserPoolForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user_id = get_user_id();
- return $this->asJson($form->orderPoolList());
- }
- }
|