| 123456789101112131415161718192021222324252627 |
- <?php
- namespace ghs\controllers;
- use bizGhs\stat\classes\StatKdClass;
- use common\components\util;
- use Yii;
- class StatKdController extends BaseController
- {
- //各渠道收入 ssh 20220711
- public function actionProfile()
- {
- $shopAdmin = $this->shopAdmin;
- if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
- util::fail('超管才能查看');
- }
- $get = Yii::$app->request->get();
- $contain = $get['contain'] ?? 0;
- $incomeList = StatKdClass::eachChannelIncome($this->mainId, $this->shop, $contain);
- util::success(['list' => $incomeList]);
- }
- }
|