StatKdController.php 639 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace ghs\controllers;
  3. use bizGhs\stat\classes\StatKdClass;
  4. use common\components\util;
  5. use Yii;
  6. class StatKdController extends BaseController
  7. {
  8. //各渠道收入 ssh 20220711
  9. public function actionProfile()
  10. {
  11. $shopAdmin = $this->shopAdmin;
  12. if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
  13. util::fail('超管才能查看');
  14. }
  15. $get = Yii::$app->request->get();
  16. $contain = $get['contain'] ?? 0;
  17. $incomeList = StatKdClass::eachChannelIncome($this->mainId, $this->shop, $contain);
  18. util::success(['list' => $incomeList]);
  19. }
  20. }