Link.php 926 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace app\admin\controller;
  3. use app\common\controller\Backend;
  4. use think\Config;
  5. /**
  6. * 自定义菜单配置
  7. *
  8. * @icon fa fa-dashboard
  9. * @remark 用于展示当前系统中的统计数据、统计报表及重要实时数据
  10. */
  11. class Link extends Backend
  12. {
  13. /**
  14. * 查看
  15. */
  16. public function index()
  17. {
  18. $params_arr = [];
  19. if ($this->auth->agent_id) { //配号代理商
  20. $params_arr['channel_id'] = $this->auth->agent_id;
  21. $params_arr['agent_id'] = $this->auth->id;
  22. } elseif ($this->group == 4) { //代理商
  23. $params_arr['agent_id'] = $this->auth->id;
  24. $params_arr['channel_id'] = $this->auth->channel_id;
  25. } elseif ($this->group == 3) { //渠道商
  26. $params_arr['channel_id'] = $this->auth->channel_id;
  27. }
  28. $this->assign('param', $params_arr);
  29. return $this->view->fetch();
  30. }
  31. }