Quellcode durchsuchen

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

admin vor 1 Jahr
Ursprung
Commit
48c68e4e9d
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      app/Libs/Helpers.php

+ 1 - 1
app/Libs/Helpers.php

@@ -458,7 +458,7 @@ function dingTalkAlertException(\Throwable $exception)
     }
 
     if(!$ip){
-        $ip = trim( shell_exec("  eth0 |grep 'inet ' 2>/dev/null  |awk '{print $2}' ") );
+        $ip = trim( shell_exec("ifconfig  eth0 |grep 'inet ' 2>/dev/null  |awk '{print $2}' ") );
     }
 
     $result = [