Ver Fonte

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

admin há 1 ano atrás
pai
commit
4fc45ffca3
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      app/Libs/Helpers.php

+ 4 - 0
app/Libs/Helpers.php

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