Selaa lähdekoodia

上报错误ip

zhaoyang 1 vuosi sitten
vanhempi
commit
462d6876ea
1 muutettua tiedostoa jossa 0 lisäystä ja 3 poistoa
  1. 0 3
      app/Libs/Helpers.php

+ 0 - 3
app/Libs/Helpers.php

@@ -305,9 +305,6 @@ function dingTalkAlertException(\Throwable $exception)
         $ip = isset($ssh_list[2]) ? $ssh_list[2]:'';
     }
 
-    if(!$ip){
-        $ip = trim( shell_exec("ifconfig  eth0 |grep 'inet ' 2>/dev/null  |awk '{print $2}' ") );
-    }
 
     $result = [
         'message'=>$exception->getMessage(),