jqhph / dcat-admin

🔥 基于 Laravel 的后台系统构建工具 (Laravel Admin),使用很少的代码快速构建一个功能完善的高颜值后台系统,内置丰富的后台常用组件,开箱即用,让开发者告别冗杂的HTML代码
http://www.dcatadmin.com
MIT License
3.81k stars 680 forks source link

Bug: 错误的数据库判断 #2093

Closed devhaozi closed 3 weeks ago

devhaozi commented 7 months ago

https://github.com/jqhph/dcat-admin/blob/fc93239542ef6715a2b554c48ae19f8d63cb1918/src/Http/Controllers/ScaffoldController.php#L211C5-L220C1

这里只是判断了连接中有没有 mysql,但是没判断 default 用的是什么,导致在使用非 mysql 数据库的时候,如果没删掉 connections 中的 mysql 条目,会进入下面的流程导致报错或者卡住无响应。

stale[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.