auth(), strval($request->get("conversation_id","")), strval($request->get("content","")) ); } /** * 聊天历史,列表分页 * @return array */ public function index() { $conditions = [ 'Robot' => true, 'user_id' => $this->auth(), "conversation_id"=>request('conversation_id', null) ]; $fields = ['*']; $sort = '`id` asc'; $page = request('page', 1); $limit = request('limit', 20); return AiChatContentFacade::getChatContentList($conditions, $fields, $sort, $page, $limit); } }