Kaynağa Gözat

Merge branch 'feature-wechat' of qk:zy_duanju/duanju_manage into test

admin 1 yıl önce
ebeveyn
işleme
90289052fb
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      app/Libs/Helpers.php

+ 2 - 2
app/Libs/Helpers.php

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