'tom@gmail.com', 'content' => 'hello']; // 投递消息 Redis::send($queue, $data); // 投递延迟消息,消息会在60秒后处理 Redis::send($queue, $data, 60); return json(['msg' =>create_password(123456, '11d3')]); } /** * @notes 下载文件 */ public function download() { $params = (new GenerateTableValidate())->goCheck('download'); $result = GeneratorLogic::download($params['file']); if (false === $result) { return $this->fail(GeneratorLogic::getError() ?: '下载失败'); } return response()->download($result, 'webman-curd.zip'); } }