代码下载接口

This commit is contained in:
2025-05-13 16:35:18 +08:00
parent ace14b1728
commit 93d99abc97
2 changed files with 43 additions and 2 deletions

View File

@@ -46,4 +46,16 @@ class CodeGenerationController extends BaseController
return $this->service->download($id);
}
public function downloadInfo()
{
// $id = request()->post('id');
$id = request()->get('id');
if (!$id) {
return jerr('参数错误!');
}
return jok(
$this->service->downloadInfo($id)
);
}
}