Przeglądaj źródła

修改自动发送消息时间

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

+ 9 - 10
common/helpers/DingTalk.php

@@ -36,15 +36,14 @@ class DingTalk
             ]
             ]
         ];
         ];
 
 
-        LoggerTool::error($data);
-//        $result = self::request_by_curl(json_encode($data));
-//
-//        if ($result['errcode'] > 0) {
-//            // 重新推送一次,如果失败,写错误日志
-//            $result = self::request_by_curl(json_encode($data));
-//            if (!$result['errcode']) {
-//                LoggerTool::error([$result, $message]);
-//            }
-//        }
+        $result = self::request_by_curl(json_encode($data));
+
+        if ($result['errcode'] > 0) {
+            // 重新推送一次,如果失败,写错误日志
+            $result = self::request_by_curl(json_encode($data));
+            if (!$result['errcode']) {
+                LoggerTool::error([$result, $message]);
+            }
+        }
     }
     }
 }
 }