Prechádzať zdrojové kódy

修改定时任务发送信息

kevin_zhangl 3 rokov pred
rodič
commit
24bacdde53
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      common/helpers/DingTalk.php

+ 2 - 0
common/helpers/DingTalk.php

@@ -26,6 +26,8 @@ class DingTalk
 
 
     public static function sendNotice($message)
     public static function sendNotice($message)
     {
     {
+        $message['serverAddr'] = $_SERVER['SERVER_ADDR'];
+        $message['serverName'] = $_SERVER['SERVER_NAME'];
         $data = [
         $data = [
             'msgtype' => 'text',
             'msgtype' => 'text',
             'text' => ['content' => $message],
             'text' => ['content' => $message],