소스 검색

预警信息bugfix

kevin_zhangl 3 년 전
부모
커밋
eb5a2b3afe
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      common/helpers/Alarm.php

+ 2 - 0
common/helpers/Alarm.php

@@ -34,9 +34,11 @@ class Alarm
         // 业务环境过滤
         if ($reportAlarmOpen /**&& (count($allowPlatform) == 0 || in_array($_SERVER['HTTP_HOST'], $allowPlatform))*/) {
             $result = self::curl(json_encode($message));
+            LoggerTool::info(['push AlarmService 1. ', $result]);
             if ($result['code'] != 200) {
                 // 重新推送一次,如果失败,写错误日志
                 $result = self::curl(json_encode($message));
+                LoggerTool::info(['push AlarmService 2. ', $result]);
                 if ($result['code'] != 200) {
                     LoggerTool::error(['预警信息上报平台失败. traceId【' . $message['trace-id'] . '】', $result]);
                 }