ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
将发送来的参数转为数组 ``` $filter = $this->request->get("filter", ''); $tempFilter = json_decode($filter, true) ?? []; ``` 将参数取出后删除原数组的值 然后将数组转回去 ``` unset($tempFilter['add_uid']); $filter = json_encode($tempFilter); ``` 重新赋值 where ``` list($where, $sort, $order, $offset, $limit) = $this->buildparams(null, null, $filter); ``` common/controller/backend.php buildparams方法加参数 ![](https://img.kancloud.cn/bd/0e/bd0e09fcd37f0d5940eac2395cb1878c_1680x906.png)