Przeglądaj źródła

修改发送消息提醒环境限制

kevin_zhangl 3 lat temu
rodzic
commit
bb9778d00a
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      common/helpers/DingTalk.php

+ 2 - 2
common/helpers/DingTalk.php

@@ -38,7 +38,7 @@ class DingTalk
         ];
 
         // 正式环境才发送
-        if (in_array($_SERVER['HTTP_HOST'], ['ng-frontend-api.elken.com', 'ng-backend-api.elken.com'])) {
+//        if (in_array($_SERVER['HTTP_HOST'], ['ng-frontend-api.elken.com', 'ng-backend-api.elken.com'])) {
             $result = self::request_by_curl(json_encode($data));
             if ($result['errcode'] > 0) {
                 // 重新推送一次,如果失败,写错误日志
@@ -47,6 +47,6 @@ class DingTalk
                     LoggerTool::error([$result, $message]);
                 }
             }
-        }
+//        }
     }
 }