dataLists(new ToolsLists()); } /** * 对话 * @return Json * @author L * @data 2024/6/17 15:49 */ public function chat():Json { $params = (new ToolsValidate())->post()->goCheck("chat"); return ToolsLogic::chat($params, $this->userId) ? $this->success(data: ToolsLogic::getReturnData()) : $this->fail(ToolsLogic::getError()); } public function getConfig():Json { $param = 'sd.' . $this->request->get('model'); $result = config($param) ?: []; return $this->data($result); } }