Explorar el Código

高德请求返回错误时,用钉钉报出来

shizhongqi hace 4 meses
padre
commit
3f7cbb3a3c
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      common/components/mapUtil.php

+ 2 - 0
common/components/mapUtil.php

@@ -83,6 +83,8 @@ class mapUtil
                 // 返回的结果顺序与传入的 origins 顺序一致
                 // 返回的结果顺序与传入的 origins 顺序一致
                 $distances[$index] = $res['distance'] ?? 0; 
                 $distances[$index] = $res['distance'] ?? 0; 
             }
             }
+        }else{
+            noticeUtil::push("高德批量测距接口返回失败:".json_encode($result)." url:".$url);
         }
         }
         
         
         return $distances;
         return $distances;