diff --git a/app/Controller/TestController.php b/app/Controller/TestController.php index 7413f6f..4dde2ad 100644 --- a/app/Controller/TestController.php +++ b/app/Controller/TestController.php @@ -91,7 +91,8 @@ class TestController extends AbstractController public function testError() { - throw new BusinessException("测试Docker日志报错:这是一个测试异常!"); + // 模拟触发 SQLSTATE[42S22]: Column not found 数据库报错 + Db::select("SELECT nonexistent_column_test FROM user_ca_cert LIMIT 1"); } public function test(){