123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace app\admin\controller;
- use app\common\controller\Backend;
- use think\Config;
- /**
- * 自定义菜单配置
- *
- * @icon fa fa-dashboard
- * @remark 用于展示当前系统中的统计数据、统计报表及重要实时数据
- */
- class Link extends Backend
- {
- /**
- * 查看
- */
- public function index()
- {
- $params_arr = [];
- if ($this->auth->agent_id) { //配号代理商
- $params_arr['channel_id'] = $this->auth->agent_id;
- $params_arr['agent_id'] = $this->auth->id;
- } elseif ($this->group == 4) { //代理商
- $params_arr['agent_id'] = $this->auth->id;
- $params_arr['channel_id'] = $this->auth->channel_id;
- } elseif ($this->group == 3) { //渠道商
- $params_arr['channel_id'] = $this->auth->channel_id;
- }
- $this->assign('param', $params_arr);
- return $this->view->fetch();
- }
- }
|