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