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'); } /** * @notes 获取app更新信息 */ public function app_update(){ $find= Db::name('app_update')->where('type',2)->order('id','desc')->findOrEmpty(); return $this->success('ok',$find); } }