云中台-加DIY链接(带参数)

2025-04-22 16:27:03 阅读:6 编辑

application/wxapp_url_config.php

array(
        'name'=>'AI智能体',
        'value'=>'/plus5/moreaiagent/agent/agent',
        'plugin'=>'plugin_moreaiagent',
        'plugin_name' => 'AI智能体',
    ),  

application/admin/view/chome/pageselect.html

(693行)

else if(value == "/plus5/moreaiagent/agent/agent"){
            select_menu('79');

925行

 case '79': // AI智能体
                window.location.href = "{:adminurl('choosegoods')}&select_id={$this_id}&this_type={$this_type}&jump_type=1&page_type=79&sid={$this_sid}";
                break;          

application/admin/controller/Chome.php

79行

     case 79:
                return view('choosemoreaiagent');
                break;

1068行

public function getMoreaigentList()
    {
        global $_W;
        $page = input('request.page', 1);
        $limit = input('request.limit', 10);
        $model = new Moreaiagentlist();
        $where['uniacid'] = $_W['uniacid'];
        $order['id'] = 'desc';
        $list = $model->where($where)->order($order)->page($page, $limit)->select();

        return [
            'code' => 0,
            'count' => $model->where($where)->count(),
            'data' => $list,
            'msg' => '',
        ];
    }           

创建 application/admin/view/chome/choosemoreaiagent.html