|
@@ -439,12 +439,12 @@ function dingTalkAlertException(\Throwable $exception)
|
|
$url .= '&'.http_build_query(['timestamp'=>$timestamp,'sign'=>$sign]);
|
|
$url .= '&'.http_build_query(['timestamp'=>$timestamp,'sign'=>$sign]);
|
|
|
|
|
|
$class_name = get_class($exception);
|
|
$class_name = get_class($exception);
|
|
- $app_path = app_path();
|
|
|
|
|
|
+ $app_path = base_path();
|
|
$trace = $exception->getTraceAsString();
|
|
$trace = $exception->getTraceAsString();
|
|
$trace_list = preg_split('/\n/',$trace);
|
|
$trace_list = preg_split('/\n/',$trace);
|
|
$error = '- '.$exception->getFile().':'.$exception->getLine()."\n";
|
|
$error = '- '.$exception->getFile().':'.$exception->getLine()."\n";
|
|
foreach($trace_list as $item){
|
|
foreach($trace_list as $item){
|
|
- if( Str::contains($item,$app_path)){
|
|
|
|
|
|
+ if( !Str::contains($item,'vendor')){
|
|
$error .= '- '.trim(preg_replace('/^(\#\d+)/','',$item))."\n";
|
|
$error .= '- '.trim(preg_replace('/^(\#\d+)/','',$item))."\n";
|
|
}
|
|
}
|
|
}
|
|
}
|