File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 14
14
*/
15
15
return [
16
16
'enabled ' => env ('SOAR_ENABLED ' , env ('APP_ENV ' ) === 'local ' ),
17
- '-soar-path ' => env ('SOAR_PATH ' , '' ), // soar 二进制文件存储路径
17
+ '-soar-path ' => env ('SOAR_PATH ' , '' ), // soar 二进制文件的绝对路径
18
18
'-test-dsn ' => [
19
19
'host ' => env ('SOAR_TEST_DSN_HOST ' , '127.0.0.1 ' ),
20
20
'port ' => env ('SOAR_TEST_DSN_PORT ' , '3306 ' ),
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function process(ProceedingJoinPoint $proceedingJoinPoint)
67
67
{
68
68
$ sqlKey = class_basename (QueryExecListener::class);
69
69
70
- if (! $ this ->config ['enabled ' ] || ! Context::has ($ sqlKey )) {
70
+ if (! $ this ->config ['enabled ' ] || ! Context::has ($ sqlKey ) || ! is_file ( $ this -> config [ ' -soar-path ' ]) ) {
71
71
return $ proceedingJoinPoint ->process ();
72
72
}
73
73
You can’t perform that action at this time.
0 commit comments